replace ::set-output in release action (#4493)

Update the 'Release' GitHub Action workflow to replace the deprecated
::set-output command with the newer $GITHUB_OUTPUT file mechanism.
This commit is contained in:
Kenneth Jenkins 2023-09-01 14:12:37 -07:00 committed by GitHub
parent 1a396c5c5b
commit f1fc571208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,8 +69,8 @@ jobs:
id: tagName
run: |
TAG=$(git describe --tags --exact-match)
echo ::set-output name=tag::${TAG}
echo ::set-output name=version::${TAG#v}
echo "tag=${TAG}" >> $GITHUB_OUTPUT
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
- name: Install Cloudsmith CLI
run: |
@ -96,7 +96,7 @@ jobs:
id: latestTag
run: |
LATEST_TAG=$(git tag | grep -vi 'rc' | sort --version-sort | tail -1)
echo "::set-output name=tag::${LATEST_TAG}"
echo "tag=${LATEST_TAG}" >> $GITHUB_OUTPUT
- name: Publish latest tag
if: "steps.latestTag.outputs.tag == steps.tagName.outputs.tag"