-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GITHUB_OUTPUT instead of deprecated ::set-output (#597)
- Loading branch information
1 parent
8460c28
commit 4bd8b8c
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
fetch-depth: 0 | ||
- name: Set the commit SHA | ||
id: sha | ||
run: echo "::set-output name=commitSha::$(if [ -z "$SHA" ]; then echo $GITHUB_SHA; else echo $SHA; fi)" | ||
run: echo "commitSha=$(if [ -z "$SHA" ]; then echo $GITHUB_SHA; else echo $SHA; fi)" >> "$GITHUB_OUTPUT" | ||
env: | ||
SHA: ${{ github.event.inputs.sha }} | ||
- name: Set the tag | ||
|
@@ -30,7 +30,7 @@ jobs: | |
# v1.2.3 is parsed into $1 = "v1.", $2 = "2", $3 = ".3" | ||
# and concatenated back into v1.3.0 | ||
new_tag="$(echo "$last_tag" | perl -pe 's/^(v\d+\.)(\d+)(\.\d+)$/$1.($2+1).".0"/e')" | ||
echo "::set-output name=newTag::$(if [ -z "$TAG" ]; then echo $new_tag; else echo $TAG; fi)" | ||
echo "newTag=$(if [ -z "$TAG" ]; then echo $new_tag; else echo $TAG; fi)" >> "$GITHUB_OUTPUT" | ||
env: | ||
TAG: ${{ github.event.inputs.tag }} | ||
- uses: tibdex/[email protected] | ||
|