with access token

This commit is contained in:
joyqi
2021-08-20 11:55:51 +08:00
parent 478ec92491
commit 6855e9f1f3
+1 -1
View File
@@ -51,4 +51,4 @@ jobs:
path: ./build/
- name: Trigger build
run: |
curl -XPOST -u "username:${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/typecho/languages/actions/workflows/update.yml/dispatches --data '{"ref": "master"}'
curl -XPOST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/typecho/languages/actions/workflows/update.yml/dispatches --data '{"ref": "master"}'