Skip to content

Commit

Permalink
Merge pull request #3 from smartcontractkit/QA-78-deprecated-set-outp…
Browse files Browse the repository at this point in the history
…ut-updates

QA-78 Remove usages of deprecated set-output syntax
  • Loading branch information
tateexon authored Oct 12, 2022
2 parents ee1bc49 + eafbc88 commit aabd5ef
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lint

on:
push:
pull_request:

jobs:
shellcheck:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- name: Get the version
id: get_version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\/v/}
run: echo "version=${GITHUB_REF/refs\/tags\/v/}" >>$GITHUB_OUTPUT
- name: copy with version in name
run: cp ./bin/tool-versions-to-env ./tool-versions-to-env-${{ steps.get_version.outputs.version }}
- name: Release
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/test_asdf_plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: test asdf plugin
on:
push:
pull_request:

jobs:
test_asdf_plugin:
Expand All @@ -24,4 +24,18 @@ jobs:
OUTPUT=$(./bin/tool-versions-to-env 3 shfmt_version)
if [ "$OUTPUT" -ne "3.4.2" ]; then
exit 1
fi
test_action:
name: Test if action sets outputs
runs-on: ubuntu-latest
steps:
- name: Checkout the Repo
uses: actions/checkout@v3
- name: get versions
id: versions
uses: ./
- name: Verify
run: |
if [ "${{ steps.versions.outputs.shellcheck_version }}" != "0.8.0" ]; then
exit 1
fi
2 changes: 1 addition & 1 deletion bin/tool-versions-to-env
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ read_tool_versions_write_to_env() {
if [ "$how_to_echo" -eq 1 ]; then
echo "${full_key}=${value}" >>"${env_file}"
elif [ "$how_to_echo" -eq 2 ]; then
echo "::set-output name=${full_key}::$value"
echo "${full_key}=$value" >>"$GITHUB_OUTPUT"
elif [ "$how_to_echo" -eq 3 ]; then
echo "$value"
break
Expand Down

0 comments on commit aabd5ef

Please sign in to comment.