From 78b9f30fc0c3e8c1110eeed058fff2ba5d77487f Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 13 Jul 2026 11:35:48 -0400 Subject: [PATCH] =?UTF-8?q?test(TST-25):=20TEMP=20Check-6=20probe=20(do=20?= =?UTF-8?q?not=20merge)=20=E2=80=94=20forced-failure=20opens=20a=20Gitea?= =?UTF-8?q?=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/_check6_nightly_issue.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/_check6_nightly_issue.yml diff --git a/.gitea/workflows/_check6_nightly_issue.yml b/.gitea/workflows/_check6_nightly_issue.yml new file mode 100644 index 0000000..a245954 --- /dev/null +++ b/.gitea/workflows/_check6_nightly_issue.yml @@ -0,0 +1,24 @@ +# 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.\"}"