Skip to content

Commit

Permalink
fix: add PR condition to GitHub Actions status comment
Browse files Browse the repository at this point in the history
Prevent 404 error by only attempting to comment when running in a pull request context
  • Loading branch information
Joabsonlg committed Nov 23, 2024
1 parent 36bdc4b commit fb53c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
fi
- name: Report build status
if: always()
if: always() && github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
Expand Down

0 comments on commit fb53c34

Please sign in to comment.