Speedup and prevent rate limit in gh-action.yml (#1811)

By passing github token

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-07-06 14:27:28 +10:00 committed by GitHub
parent d401c48296
commit 0a9f17f1ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,12 +25,16 @@ 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:
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
- 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:
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