Skip to content

Commit

Permalink
CI: update secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Apr 12, 2023
1 parent f263092 commit 827f755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ jobs:
steps:
- name: notify to ergscripts
run: |
TOKEN=${{ secrets.DEV_TOKEN }}
curl \
-X POST \
-H "Authorization: token $TOKEN" \
-H "Authorization: token ${{ secrets.DEV_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/mtshiba/ergscripts/dispatches \
-d '{"event_type":"notification-push-main","client_payload":{"msg": "a change has been pushed to main"}}'
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ jobs:
steps:
- name: run curl
run: |
TOKEN=${{ secrets.GITHUB_TOKEN }}
curl \
-X POST \
-H "Authorization: token $TOKEN" \
-H "Authorization: token ${{ secrets.TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/erg-lang/web-ide/dispatches \
-d '{"event_type":"release-notification","client_payload":{"msg": "A new Erg version has been released"}}'

0 comments on commit 827f755

Please sign in to comment.