Skip to content

Commit

Permalink
Fix: only try to add comment to PR thread if we're on a PR (#2020)
Browse files Browse the repository at this point in the history
This prevent the action from failing on main.
  • Loading branch information
KyleAMathews authored Nov 21, 2024
1 parent de204fc commit 1896373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
fi
- name: Add comment to PR
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1896373

Please sign in to comment.