From c04ad3356074833cd77cde78ebf7aa45587a4151 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 13 Jul 2026 12:02:14 +0100 Subject: [PATCH] Update nightly failure notification --- .github/workflows/nightlybuild.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index e835432..76e3088 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -5,6 +5,11 @@ on: - cron: "20 23 * * *" repository_dispatch: +permissions: + contents: read + issues: write + + jobs: build: name: "Nightly Build" @@ -69,11 +74,17 @@ jobs: path: '**/TestResults/*.trx' retention-days: 30 - - uses: dacbd/create-issue-action@main + - name: Notify on nightly failure if: ${{ failure() }} - name: Create an issue on build failure + uses: TransactionProcessing/org-ci-workflows/.github/actions/nightly-failure-issue@main with: + github_token: ${{ secrets.GITHUB_TOKEN }} title: Investigate Nightly Build Failure - token: ${{secrets.GITHUB_TOKEN}} labels: nightlybuild - body: Url is ${{env.action_url}} + dedupe_key: nightlybuild + body: | + Repo: ${{ github.repository }} + Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + Commit: ${{ github.sha }} + Workflow: ${{ github.workflow }} + Job: ${{ github.job }}