Skip to content

Commit f53eb0b

Browse files
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#2261)
`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]>
1 parent 063b0ad commit f53eb0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ingestion_client.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
set -u -e -o pipefail
2424
version=$(cat ./samples/ingestion/ingestion-client/Setup/ArmTemplateBatch.json | jq -r .variables.Version)
2525
versionRealtime=$(cat ./samples/ingestion/ingestion-client/Setup/ArmTemplateRealtime.json | jq -r .variables.Version)
26-
echo ::set-output name=version::$version
26+
echo version=$version >> "$GITHUB_OUTPUT"
2727
echo "Batch template: ${version}"
28-
echo ::set-output name=versionRealtime::$versionRealtime
28+
echo versionRealtime=$versionRealtime >> "$GITHUB_OUTPUT"
2929
echo "Realtime template: ${versionRealtime}"
3030
3131
- name: Verify Release Versions

0 commit comments

Comments
 (0)