Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#446)
Browse files Browse the repository at this point in the history
`save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/).

This PR updates the usage of `::set-output` to `"$GITHUB_OUTPUT"`

Instructions for envvar usage from GitHub docs:

https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
  • Loading branch information
arunsathiya authored Nov 14, 2024
1 parent 5ac1b15 commit 0f4288e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
id: get-version
run: |
version=$(docker run ${{ steps.build-device-client.outputs.imageid }} --version)
echo "::set-output name=version::$version"
echo "version=$version" >> "$GITHUB_OUTPUT"
build-docker-image-ubuntu-x86_64:
runs-on: ubuntu-latest
if: (github.event_name == 'push') || ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name != github.repository))
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
id: get-version
run: |
version=$(docker run ${{ steps.build-device-client.outputs.imageid }} --version)
echo "::set-output name=version::$version"
echo "version=$version" >> "$GITHUB_OUTPUT"
build-docker-image-ubuntu-x86_64:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
Expand Down

0 comments on commit 0f4288e

Please sign in to comment.