Skip to content

Commit 956b0bb

Browse files
committed
Avoid running script when failing on forks
1 parent e16bd20 commit 956b0bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/PingControlExamplePlots.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ jobs:
1010
steps:
1111
- name: PR ping ControlExamplePlots
1212
run: |
13+
if [ "$SECRET" != "" ]; then
1314
curl -X POST https://api.github.com/repos/JuliaControl/ControlExamplePlots.jl/dispatches \
1415
-H 'Accept: application/vnd.github.everest-preview+json' \
1516
-u ${{ secrets.ACCESS_TOKEN_BOT }} \
1617
--data '{"event_type": "prupdate", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'", "pr_number": ${{ github.event.number }} }}'
18+
fi
19+
env:
20+
SECRET: ${{ secrets.ACCESS_TOKEN_BOT }}

0 commit comments

Comments
 (0)