diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 7ef5582b3..98eedb4a6 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -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"}}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31c8d92c2..1bd5da4b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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"}}'