Skip to content

Commit

Permalink
feat: trigger webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
gahyuun committed Dec 22, 2024
1 parent 8cf881f commit 97cc94b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public

- name: Trigger webhook
if: steps.check_version.outputs.version_updated == 'true'
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
https://api.github.com/repos/Myongji-Graduate/myongji-graduate-next/dispatches \
-d '{"event_type": "fetch-ax-updated"}'

0 comments on commit 97cc94b

Please sign in to comment.