mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
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:
parent
1a396c5c5b
commit
f1fc571208
1 changed files with 3 additions and 3 deletions
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
|
@ -69,8 +69,8 @@ jobs:
|
||||||
id: tagName
|
id: tagName
|
||||||
run: |
|
run: |
|
||||||
TAG=$(git describe --tags --exact-match)
|
TAG=$(git describe --tags --exact-match)
|
||||||
echo ::set-output name=tag::${TAG}
|
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=version::${TAG#v}
|
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Install Cloudsmith CLI
|
- name: Install Cloudsmith CLI
|
||||||
run: |
|
run: |
|
||||||
|
@ -96,7 +96,7 @@ jobs:
|
||||||
id: latestTag
|
id: latestTag
|
||||||
run: |
|
run: |
|
||||||
LATEST_TAG=$(git tag | grep -vi 'rc' | sort --version-sort | tail -1)
|
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
|
- name: Publish latest tag
|
||||||
if: "steps.latestTag.outputs.tag == steps.tagName.outputs.tag"
|
if: "steps.latestTag.outputs.tag == steps.tagName.outputs.tag"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue