Skip to content

Commit 4bd8b8c

Browse files
Use GITHUB_OUTPUT instead of deprecated ::set-output (#597)
1 parent 8460c28 commit 4bd8b8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/tag.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fetch-depth: 0
1919
- name: Set the commit SHA
2020
id: sha
21-
run: echo "::set-output name=commitSha::$(if [ -z "$SHA" ]; then echo $GITHUB_SHA; else echo $SHA; fi)"
21+
run: echo "commitSha=$(if [ -z "$SHA" ]; then echo $GITHUB_SHA; else echo $SHA; fi)" >> "$GITHUB_OUTPUT"
2222
env:
2323
SHA: ${{ github.event.inputs.sha }}
2424
- name: Set the tag
@@ -30,7 +30,7 @@ jobs:
3030
# v1.2.3 is parsed into $1 = "v1.", $2 = "2", $3 = ".3"
3131
# and concatenated back into v1.3.0
3232
new_tag="$(echo "$last_tag" | perl -pe 's/^(v\d+\.)(\d+)(\.\d+)$/$1.($2+1).".0"/e')"
33-
echo "::set-output name=newTag::$(if [ -z "$TAG" ]; then echo $new_tag; else echo $TAG; fi)"
33+
echo "newTag=$(if [ -z "$TAG" ]; then echo $new_tag; else echo $TAG; fi)" >> "$GITHUB_OUTPUT"
3434
env:
3535
TAG: ${{ github.event.inputs.tag }}
3636
- uses: tibdex/github-app-token@v1.5.2

0 commit comments

Comments
 (0)