From 690615abb946ff13727ad6572bb863de1e3f0cd3 Mon Sep 17 00:00:00 2001 From: TicClick Date: Sat, 27 Jan 2024 13:36:21 +0100 Subject: [PATCH] use `GH_TOKEN` instead of `GITHUB_TOKEN` (`gh` requires it) --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a7383b..a54814b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,6 +72,8 @@ jobs: - name: Clone glass dependency shell: bash run: gh repo clone TicClick/glass crates/glass + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build (private) uses: taiki-e/upload-rust-binary-action@v1 @@ -83,7 +85,7 @@ jobs: - name: Upload (private) shell: bash env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ASSET_GIST_HASH: ${{ secrets.ASSET_GIST_HASH }} run: | existing_files=$( gh gist view "${ASSET_GIST_HASH}" --files ) @@ -101,7 +103,7 @@ jobs: - name: Tag all assets shell: bash env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ASSET_GIST_HASH: ${{ secrets.ASSET_GIST_HASH }} run: | gh gist clone "${ASSET_GIST_HASH}" @@ -115,6 +117,6 @@ jobs: env: ASSET_GIST_OWNER: TicClick TAG_NAME: ${{ github.ref_name }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ASSET_GIST_HASH: ${{ secrets.ASSET_GIST_HASH }} METADATA_GIST_HASH: ${{ secrets.METADATA_GIST_HASH }}