From 8cb54dbfa50da21871fa63358040ee9a897c6eba Mon Sep 17 00:00:00 2001 From: zyr17 Date: Tue, 13 Feb 2024 19:07:04 +0800 Subject: [PATCH] update workflow --- .github/tag.js | 2 +- .github/workflows/tag.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/tag.js b/.github/tag.js index 85d81b9..0b72193 100644 --- a/.github/tag.js +++ b/.github/tag.js @@ -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'; diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 41770a6..dc9462c 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -28,4 +28,4 @@ jobs: - name: update tag run: | cp .github/tag.js . - node tag.js ${{ secrets.ACCESS_TOKEN }} $GITHUB_REPOSITORY \ No newline at end of file + node tag.js ${{ secrets.GITHUB_TOKEN }} $GITHUB_REPOSITORY \ No newline at end of file