From 0a9f17f1badb83b975e13806fdad471a6e900ca8 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sat, 6 Jul 2024 14:27:28 +1000 Subject: [PATCH] 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> --- .github/workflows/gh-action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-action.yml b/.github/workflows/gh-action.yml index 47b78223..d9aad264 100644 --- a/.github/workflows/gh-action.yml +++ b/.github/workflows/gh-action.yml @@ -25,12 +25,16 @@ jobs: - name: Install cargo-binstall uses: ./ # uses action.yml from root of the repo - + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Verify successful installation - display cargo-binstall's help run: cargo binstall --help - name: Verify successful installation - install example binary using cargo-binstall run: cargo binstall -y ripgrep - + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Verify successful installation - display help of installed binary run: rg --help