Skip to content

Commit 685abf8

Browse files
committed
Change some missed set-output commands to GITHUB_OUTPUT
1 parent b71469d commit 685abf8

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.3.4] - 2022-10-15
11+
12+
### Changed
13+
14+
* The last version did not fix all "set-output" commands
15+
1016
## [1.3.3] - 2022-10-13
1117

1218
### Changed

action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ runs:
4747
- id: flags
4848
run: |
4949
: construct rustup command line
50-
echo "::set-output name=targets::$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)"
51-
echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)"
52-
echo "::set-output name=downgrade::${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}"
50+
echo "targets=$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)" >> $GITHUB_OUTPUT
51+
echo "components=$(for c in ${components//,/ }; do echo -n ' --component' $c; done)" >> $GITHUB_OUTPUT
52+
echo "downgrade=${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}" >> $GITHUB_OUTPUT
5353
env:
5454
targets: ${{inputs.target}}
5555
components: ${{inputs.components}}
@@ -94,16 +94,16 @@ runs:
9494
- name: Print installed versions
9595
id: versions
9696
run: |
97-
echo "::set-output name=rustc-version::$(rustc --version)"
97+
echo "rustc-version=$(rustc --version)" >> $GITHUB_OUTPUT
9898
rustc --version --verbose
99-
echo "::set-output name=cargo-version::$(cargo --version)"
99+
echo "cargo-version=$(cargo --version)" >> $GITHUB_OUTPUT
100100
cargo --version --verbose
101-
echo "::set-output name=rustup-version::$(rustup --version)"
101+
echo "rustup-version=$(rustup --version)" >> $GITHUB_OUTPUT
102102
rustup --version
103103
104104
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')
105105
HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
106-
echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)"
106+
echo "cachekey=$(echo $DATE$HASH | head -c12)" >> $GITHUB_OUTPUT
107107
shell: bash
108108

109109
- name: "Setup Rust Caching"

0 commit comments

Comments
 (0)