Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zyr17 committed Feb 13, 2024
1 parent faf98db commit 8cb54db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ result = JSON.stringify(result);
let token = process.argv[2];
let repo = process.argv[3];

let cmd = 'curl -X POST -H "Authorization: token ' + token + '"'
let cmd = 'curl -X POST -H "Authorization: Bearer ' + token + '"'
+ ' --data ' + "'" + result + "'"
+ ' https://api.github.com/repos/' + repo + '/releases';

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
- name: update tag
run: |
cp .github/tag.js .
node tag.js ${{ secrets.ACCESS_TOKEN }} $GITHUB_REPOSITORY
node tag.js ${{ secrets.GITHUB_TOKEN }} $GITHUB_REPOSITORY

0 comments on commit 8cb54db

Please sign in to comment.