mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Fix CI blocked due to cargo-binstall rate-limit (#1860)
* 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> * Update install-script.yml Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * RM outdated comment in gh-action.yml Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Pass github token to cargo-bins/cargo-binstall action in release-cli.yml Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Pass github-token to taiki-e/install-action in release-pr.yml Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --------- Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
ad892911c6
commit
5d57d4506e
4 changed files with 10 additions and 6 deletions
4
.github/workflows/gh-action.yml
vendored
4
.github/workflows/gh-action.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
- name: Install cargo-binstall
|
||||
uses: ./ # uses action.yml from root of the repo
|
||||
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
|
||||
run: cargo binstall --help
|
||||
|
@ -34,7 +34,7 @@ jobs:
|
|||
- name: Verify successful installation - install example binary using cargo-binstall
|
||||
run: cargo binstall -y ripgrep
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Verify successful installation - display help of installed binary
|
||||
run: rg --help
|
||||
|
|
6
.github/workflows/install-script.yml
vendored
6
.github/workflows/install-script.yml
vendored
|
@ -47,7 +47,7 @@ jobs:
|
|||
- name: Install `cargo-binstall` using scripts
|
||||
run: ./install-from-binstall-release.sh
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Verify `cargo-binstall` installation
|
||||
run: |
|
||||
|
@ -76,7 +76,7 @@ jobs:
|
|||
- name: Install `cargo-binstall` using scripts
|
||||
run: ./install-from-binstall-release.ps1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Verify `cargo-binstall` installation
|
||||
run: cargo binstall -vV
|
||||
|
@ -104,7 +104,7 @@ jobs:
|
|||
shell: bash
|
||||
run: ./install-from-binstall-release.sh
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Verify `cargo-binstall` installation
|
||||
shell: bash
|
||||
|
|
4
.github/workflows/release-cli.yml
vendored
4
.github/workflows/release-cli.yml
vendored
|
@ -36,10 +36,12 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: cargo-bins/cargo-binstall@main
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
- name: Install binaries required
|
||||
run: cargo binstall -y --force rsign2 rage
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create ephemeral keypair
|
||||
id: keypair
|
||||
|
|
2
.github/workflows/release-pr.yml
vendored
2
.github/workflows/release-pr.yml
vendored
|
@ -51,6 +51,8 @@ jobs:
|
|||
uses: taiki-e/install-action@v2
|
||||
with:
|
||||
tool: cargo-release,cargo-semver-checks
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- run: rustup toolchain install stable --no-self-update --profile minimal
|
||||
- uses: cargo-bins/release-pr@v2.1.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue