Skip to content

Commit 2b5964a

Browse files
authored
Update the usage of set-output command in GH actions (#270)
1 parent 22eec34 commit 2b5964a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/patch-release-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
name: Parse release branch name
3030
run: |
3131
# Sets the release-branch-name output to the version number with the last non-period element replaced with an 'x' and preprended with v.
32-
echo "::set-output name=release-branch-name::$(echo '${{ github.event.inputs.version }}' | sed -E 's/([^.]+)\.([^.]+)\.([^.]+)/v\1.\2.x/')"
32+
echo "release-branch-name=$(echo '${{ github.event.inputs.version }}' | sed -E 's/([^.]+)\.([^.]+)\.([^.]+)/v\1.\2.x/')" >> $GITHUB_OUTPUT
3333
# Sets the release-tag-name output to the version number with the last non-period element replace with a '0' and prepended with v
34-
echo "::set-output name=release-tag-name::$(echo '${{ github.event.inputs.version }}' | sed -E 's/([^.]+)\.([^.]+)\.([^.]+)/v\1.\2.0/')"
34+
echo "release-tag-name=$(echo '${{ github.event.inputs.version }}' | sed -E 's/([^.]+)\.([^.]+)\.([^.]+)/v\1.\2.0/')" >> $GITHUB_OUTPUT
3535
- id: checkout-release-branch
3636
name: Check out release branch
3737
# Will fail if there is no release branch yet or succeed otherwise

0 commit comments

Comments
 (0)