Skip to content

Commit

Permalink
Replace deprecated command with environment file (#2429)
Browse files Browse the repository at this point in the history
Signed-off-by: jongwooo <[email protected]>
  • Loading branch information
jongwooo authored Mar 10, 2023
1 parent 128b212 commit 514ecec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
file=$(ls)
sha=$(sha256sum $file | awk '{ print $1 }')
echo "Computed sha256: $sha for $file"
echo "::set-output name=${{matrix.runtime}}-sha256::$sha"
echo "${{matrix.runtime}}-sha256=$sha" >> $GITHUB_OUTPUT
shell: bash
id: sha
name: Compute SHA256
Expand All @@ -140,8 +140,8 @@ jobs:
file=$(ls)
sha=$(sha256sum $file | awk '{ print $1 }')
echo "Computed sha256: $sha for $file"
echo "::set-output name=${{matrix.runtime}}-sha256::$sha"
echo "::set-output name=sha256::$sha"
echo "${{matrix.runtime}}-sha256=$sha" >> $GITHUB_OUTPUT
echo "sha256=$sha" >> $GITHUB_OUTPUT
shell: bash
id: sha_noexternals
name: Compute SHA256
Expand All @@ -150,8 +150,8 @@ jobs:
file=$(ls)
sha=$(sha256sum $file | awk '{ print $1 }')
echo "Computed sha256: $sha for $file"
echo "::set-output name=${{matrix.runtime}}-sha256::$sha"
echo "::set-output name=sha256::$sha"
echo "${{matrix.runtime}}-sha256=$sha" >> $GITHUB_OUTPUT
echo "sha256=$sha" >> $GITHUB_OUTPUT
shell: bash
id: sha_noruntime
name: Compute SHA256
Expand All @@ -160,8 +160,8 @@ jobs:
file=$(ls)
sha=$(sha256sum $file | awk '{ print $1 }')
echo "Computed sha256: $sha for $file"
echo "::set-output name=${{matrix.runtime}}-sha256::$sha"
echo "::set-output name=sha256::$sha"
echo "${{matrix.runtime}}-sha256=$sha" >> $GITHUB_OUTPUT
echo "sha256=$sha" >> $GITHUB_OUTPUT
shell: bash
id: sha_noruntime_noexternals
name: Compute SHA256
Expand Down
10 changes: 5 additions & 5 deletions src/Test/TestData/conditional_composite_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ runs:
- run: exit ${{ inputs.exit-code }}
shell: bash

- run: echo "::set-output name=default::true"
- run: echo "default=true" >> $GITHUB_OUTPUT
id: default-conditional
shell: bash

- run: echo "::set-output name=success::true"
- run: echo "success=true" >> $GITHUB_OUTPUT
id: success-conditional
shell: bash
if: success()

- run: echo "::set-output name=failure::true"
- run: echo "failure=true" >> $GITHUB_OUTPUT
id: failure-conditional
shell: bash
if: failure()

- run: echo "::set-output name=always::true"
- run: echo "always=true" >> $GITHUB_OUTPUT
id: always-conditional
shell: bash
if: always()

- run: echo "failed"
shell: bash
if: ${{ inputs.exit-code == 1 && failure() }}
if: ${{ inputs.exit-code == 1 && failure() }}

0 comments on commit 514ecec

Please sign in to comment.