Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command
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 Jul 10, 2024
1 parent 155bb72 commit c1212f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:
- name: Read VERSION file
if: ${{ env.SIGNING_ENABLED == 'true' }}
id: getversion
run: echo "::set-output name=version::$(cat src/ODBC_DRIVER_VERSION.txt)"
run: echo "version=$(cat src/ODBC_DRIVER_VERSION.txt)" >> "$GITHUB_OUTPUT"

- name: "Configure AWS credentials"
if: ${{ env.SIGNING_ENABLED == 'true' }}
Expand Down Expand Up @@ -315,7 +315,7 @@ jobs:
- name: Read VERSION file
if: ${{ env.SIGNING_ENABLED == 'true' }}
id: getversion
run: echo "::set-output name=version::$(cat src/ODBC_DRIVER_VERSION.txt)"
run: echo "version=$(cat src/ODBC_DRIVER_VERSION.txt)" >> "$GITHUB_OUTPUT"

- name: "Configure AWS credentials"
if: ${{ env.SIGNING_ENABLED == 'true' }}
Expand Down

0 comments on commit c1212f3

Please sign in to comment.