mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2024-12-26 17:00:34 +01:00
Change some missed set-output commands to GITHUB_OUTPUT
This commit is contained in:
parent
b71469df8b
commit
685abf8306
2 changed files with 13 additions and 7 deletions
|
@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.3.4] - 2022-10-15
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* The last version did not fix all "set-output" commands
|
||||||
|
|
||||||
## [1.3.3] - 2022-10-13
|
## [1.3.3] - 2022-10-13
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
14
action.yml
14
action.yml
|
@ -47,9 +47,9 @@ runs:
|
||||||
- id: flags
|
- id: flags
|
||||||
run: |
|
run: |
|
||||||
: construct rustup command line
|
: construct rustup command line
|
||||||
echo "::set-output name=targets::$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)"
|
echo "targets=$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)"
|
echo "components=$(for c in ${components//,/ }; do echo -n ' --component' $c; done)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=downgrade::${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}"
|
echo "downgrade=${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}" >> $GITHUB_OUTPUT
|
||||||
env:
|
env:
|
||||||
targets: ${{inputs.target}}
|
targets: ${{inputs.target}}
|
||||||
components: ${{inputs.components}}
|
components: ${{inputs.components}}
|
||||||
|
@ -94,16 +94,16 @@ runs:
|
||||||
- name: Print installed versions
|
- name: Print installed versions
|
||||||
id: versions
|
id: versions
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=rustc-version::$(rustc --version)"
|
echo "rustc-version=$(rustc --version)" >> $GITHUB_OUTPUT
|
||||||
rustc --version --verbose
|
rustc --version --verbose
|
||||||
echo "::set-output name=cargo-version::$(cargo --version)"
|
echo "cargo-version=$(cargo --version)" >> $GITHUB_OUTPUT
|
||||||
cargo --version --verbose
|
cargo --version --verbose
|
||||||
echo "::set-output name=rustup-version::$(rustup --version)"
|
echo "rustup-version=$(rustup --version)" >> $GITHUB_OUTPUT
|
||||||
rustup --version
|
rustup --version
|
||||||
|
|
||||||
DATE=$(rustc --version --verbose | sed -ne 's/^commit-date: \(20[0-9][0-9]\)-\([01][0-9]\)-\([0-3][0-9]\)$/\1\2\3/p')
|
DATE=$(rustc --version --verbose | sed -ne 's/^commit-date: \(20[0-9][0-9]\)-\([01][0-9]\)-\([0-3][0-9]\)$/\1\2\3/p')
|
||||||
HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
|
HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
|
||||||
echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)"
|
echo "cachekey=$(echo $DATE$HASH | head -c12)" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: "Setup Rust Caching"
|
- name: "Setup Rust Caching"
|
||||||
|
|
Loading…
Reference in a new issue