Skip to content

Commit

Permalink
Only report failures when run on default branch
Browse files Browse the repository at this point in the history
This prevents PR runs or workflow dispatches on other branches from
opening/closing issues.
  • Loading branch information
victorlin committed Nov 22, 2024
1 parent 0386b7d commit 59ba2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/installation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

# Surface failures via GitHub issues
failure-reporting:
if: ${{ always() }}
if: ${{ always() && github.ref_name == github.event.repository.default_branch }}
runs-on: ubuntu-latest
needs: [test]
steps:
Expand Down

0 comments on commit 59ba2d9

Please sign in to comment.