From c9f47ec01c654be0971750569aacb30996a631cd Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 19 Feb 2022 16:37:20 +0800 Subject: [PATCH] fix: use GITHUB_TOKEN Signed-off-by: Wing-Kam Wong --- .github/workflows/release-draft.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml index b2c1916c45..16a79de9c8 100644 --- a/.github/workflows/release-draft.yml +++ b/.github/workflows/release-draft.yml @@ -29,7 +29,7 @@ jobs: - name: Create tag uses: actions/github-script@v3 with: - github-token: ${{ secrets.GH_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | github.git.createRef({ owner: context.repo.owner, @@ -45,4 +45,4 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 14 - - run: "npx github-release-notes@0.17.2 release --token ${{ secrets.GH_TOKEN }} --draft --tags ${{ github.event.inputs.tag || inputs.tag }}..${{ github.event.inputs.prev_tag || inputs.prev_tag }}" + - run: "npx github-release-notes@0.17.2 release --token ${{ secrets.GITHUB_TOKEN }} --draft --tags ${{ github.event.inputs.tag || inputs.tag }}..${{ github.event.inputs.prev_tag || inputs.prev_tag }}"