Replace set-output commands with GITHUB_OUTPUT environment vars (#2192)

The set-output commands via stdout are deprecated. Use the GITHUB_OUTPUT
environment variable as suggested by GitHub.
This commit is contained in:
Stefan Agner
2022-10-17 14:32:41 +02:00
committed by GitHub
parent 4c31c47a98
commit 3d763f1d77
2 changed files with 6 additions and 7 deletions

View File

@@ -29,12 +29,11 @@ jobs:
exit 1
fi
if [ "" != "${tag_dev}" ]; then
echo "Note: Release build with custom dev part: ${tag_dev}."
echo "::set-output name=version::${major}.${build}.${tag_dev}"
echo "version=${major}.${build}.${tag_dev}" >> $GITHUB_OUTPUT
else
echo "::set-output name=version::${major}.${build}"
echo "version=${major}.${build}" >> $GITHUB_OUTPUT
fi
echo "::set-output name=version_dev::${tag_dev}"
echo "version_dev=${tag_dev}" >> $GITHUB_OUTPUT
- name: Create build matrix
uses: actions/github-script@v6
id: generate_matrix