Skip to content

Commit

Permalink
use GH_TOKEN instead of GITHUB_TOKEN (gh requires it)
Browse files Browse the repository at this point in the history
  • Loading branch information
TicClick authored Jan 27, 2024
1 parent 0f977a0 commit 690615a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 )
Expand All @@ -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}"
Expand All @@ -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 }}

0 comments on commit 690615a

Please sign in to comment.