Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#2261)
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

Co-authored-by: Henry van der Vegte <[email protected]>
  • Loading branch information
arunsathiya and HenryvanderVegte authored Jun 11, 2024
1 parent 063b0ad commit f53eb0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ingestion_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
set -u -e -o pipefail
version=$(cat ./samples/ingestion/ingestion-client/Setup/ArmTemplateBatch.json | jq -r .variables.Version)
versionRealtime=$(cat ./samples/ingestion/ingestion-client/Setup/ArmTemplateRealtime.json | jq -r .variables.Version)
echo ::set-output name=version::$version
echo version=$version >> "$GITHUB_OUTPUT"
echo "Batch template: ${version}"
echo ::set-output name=versionRealtime::$versionRealtime
echo versionRealtime=$versionRealtime >> "$GITHUB_OUTPUT"
echo "Realtime template: ${versionRealtime}"
- name: Verify Release Versions
Expand Down

0 comments on commit f53eb0b

Please sign in to comment.