Skip to content

Commit d002d08

Browse files
joostjagerclaude
andcommitted
Add CI job to report main branch build failures via GitHub issues
Uses jayqi/failed-build-issue-action to automatically create or comment on a "build failed" issue when any CI job fails on the main branch. Pins the action to a specific commit SHA for supply chain safety. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0b45bfd commit d002d08

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,14 @@ jobs:
342342
- name: Test tor connections using lightning-net-tokio
343343
run: |
344344
TOR_PROXY="127.0.0.1:9050" RUSTFLAGS="--cfg=tor" cargo test --verbose --color always -p lightning-net-tokio
345+
346+
notify-failure:
347+
needs: [build, fuzz, linting, rustfmt, check_release, check_docs, benchmark, ext-test, tor-connect, coverage]
348+
if: failure() && github.ref == 'refs/heads/main'
349+
runs-on: ubuntu-latest
350+
permissions:
351+
issues: write
352+
steps:
353+
- uses: jayqi/failed-build-issue-action@1a893bbf43ef1c2a8705e2b115cd4f0fe3c5649b # v1.2.0
354+
with:
355+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)