mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
ci: Correct variable used in install tests (#1977)
The `STRIP_V` env var should be set from the `set_binstall_version` matrix variable. While here, ensure that the install-script workflow is run whenever the workflow itself is changed (in addition to the install scripts themselves).
This commit is contained in:
parent
266e627928
commit
dabb630e7f
1 changed files with 5 additions and 3 deletions
8
.github/workflows/install-script.yml
vendored
8
.github/workflows/install-script.yml
vendored
|
@ -10,12 +10,14 @@ on:
|
|||
paths:
|
||||
- install-from-binstall-release.ps1
|
||||
- install-from-binstall-release.sh
|
||||
- .github/workflows/install-script.yml
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- install-from-binstall-release.ps1
|
||||
- install-from-binstall-release.sh
|
||||
- .github/workflows/install-script.yml
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number || github.sha }}
|
||||
|
@ -48,7 +50,7 @@ jobs:
|
|||
- name: Set `BINSTALL_VERSION`
|
||||
if: matrix.set_binstall_version != 'no'
|
||||
env:
|
||||
STRIP_V: ${{ matrix.set_cargo_home }}
|
||||
STRIP_V: ${{ matrix.set_binstall_version }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
# fetch most recent release tag.
|
||||
|
@ -92,7 +94,7 @@ jobs:
|
|||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
STRIP_V: ${{ matrix.set_cargo_home }}
|
||||
STRIP_V: ${{ matrix.set_binstall_version }}
|
||||
run: |
|
||||
# fetch most recent release name.
|
||||
BINSTALL_VERSION="$(gh release list --json name --jq '[.[] | select(.name | startswith("v")) | .name] | first')"
|
||||
|
@ -133,7 +135,7 @@ jobs:
|
|||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
STRIP_V: ${{ matrix.set_cargo_home }}
|
||||
STRIP_V: ${{ matrix.set_binstall_version }}
|
||||
run: |
|
||||
# fetch most recent release name.
|
||||
BINSTALL_VERSION="$(gh release list --json name --jq '[.[] | select(.name | startswith("v")) | .name] | first')"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue