# TEMPORARY (do not merge): TST-25 acceptance Check 6 — proves the nightly-windev on-failure # step actually fires (`if: failure()`) and can open a Gitea issue with the built-in token. # It replicates ci.yml's issue-creation step verbatim behind a forced failure. Delete this # file + branch after the check; close the probe issue it opens. name: _check6-nightly-issue on: push: branches: [test/tst-25-check6-nightly-issue] jobs: forced-failure: runs-on: ubuntu-latest steps: - name: Force a failure (stand in for a red live-MXAccess run) run: | echo "simulating a red nightly-windev live run" exit 1 - name: Report a red nightly as a Gitea issue if: failure() run: | curl -sSf -X POST \ -H "Authorization: token ${{ github.token }}" \ -H "Content-Type: application/json" \ "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/issues" \ -d "{\"title\":\"[CHECK6 PROBE] nightly-windev failed on ${{ github.sha }}\",\"body\":\"TST-25 acceptance Check 6: verifies the on-failure issue step fires. Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} . Safe to close.\"}"