From d415d73286d4295d6a0dddaf2616ff0dcba81861 Mon Sep 17 00:00:00 2001 From: Frank Lee Date: Wed, 22 Jun 2022 11:55:21 +0800 Subject: [PATCH] [workflow] fixed release post workflow (#1154) --- .github/workflows/draft_github_release_post.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/draft_github_release_post.yml b/.github/workflows/draft_github_release_post.yml index 1f3e60dc9..234fdb847 100644 --- a/.github/workflows/draft_github_release_post.yml +++ b/.github/workflows/draft_github_release_post.yml @@ -28,11 +28,13 @@ jobs: python ./.github/workflows/scripts/generate_release_draft.py --out $PWD/release_draft.md --version $version echo "::set-output name=version::$version" echo "::set-output name=path::$PWD/release_draft.md" + env: + GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Release id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.generate_draft.outputs.version }} release_name: Version ${{ steps.generate_draft.outputs.version }} Release Today!