From 50ac5e0b736795894f844d161a94736cb63c2fd2 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 13 Jul 2026 12:02:08 +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 64ecc38..e39ee00 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -5,6 +5,11 @@ on: - cron: "10 23 * * *" repository_dispatch: +permissions: + contents: read + issues: write + + jobs: build: name: "Nightly Build" @@ -55,11 +60,17 @@ jobs: # name: tracelogs # path: /home/txnproc/trace/ - - 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 }}