Skip to content

Commit

Permalink
Merge pull request #220 from zikeji/dev
Browse files Browse the repository at this point in the history
fix(ci): change token to env
  • Loading branch information
zikeji committed Mar 22, 2021
2 parents 1fe266b + 9251406 commit f60cbc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -91,4 +91,7 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(toJSON(github.event.commits.*.message), '[skip ci]')
steps:
- name: Dispatch
run: 'curl -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/zikeji/node-hypixel/dispatches -d ''{"event_type":"release"}'' >/dev/null 2>&1'
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GH_TOKEN" https://api.github.com/repos/zikeji/node-hypixel/dispatches -d '{"event_type":"release"}' >/dev/null 2>&1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f60cbc4

Please sign in to comment.