Update gh-action.yml

Use CI_RELEASE_TEST_GITHUB_TOKEN if found as that one has less power

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-08-03 14:26:10 +10:00 committed by GitHub
parent ad892911c6
commit 8c5d071f3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ jobs:
- name: Install cargo-binstall - name: Install cargo-binstall
uses: ./ # uses action.yml from root of the repo uses: ./ # uses action.yml from root of the repo
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- name: Verify successful installation - display cargo-binstall's help - name: Verify successful installation - display cargo-binstall's help
run: cargo binstall --help run: cargo binstall --help
@ -34,7 +34,9 @@ jobs:
- name: Verify successful installation - install example binary using cargo-binstall - name: Verify successful installation - install example binary using cargo-binstall
run: cargo binstall -y ripgrep run: cargo binstall -y ripgrep
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # just-setup use binstall to install sccache,
# which works better when we provide it with GITHUB_TOKEN.
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- name: Verify successful installation - display help of installed binary - name: Verify successful installation - display help of installed binary
run: rg --help run: rg --help