Skip to content

Commit 8566e71

Browse files
Víctor Rampérez MartínVíctor Rampérez Martín
authored andcommitted
chore(github-action): update deprecated set-output in github action
1 parent 9d45b4d commit 8566e71

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/pre-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ jobs:
3535

3636
- name: Get PR Number
3737
id: pr_number
38-
run: echo "::set-output name=nr::$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')"
38+
run: |
39+
NR=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
40+
echo "nr=$NR" >> $GITHUB_OUTPUT
3941
4042
- name: Set version output
4143
id: out
4244
run: |
43-
echo "::set-output name=version::$(echo ${VERSION}-PRE-${{ steps.pr_number.outputs.nr }})"
44-
echo "::set-output name=plain-version::$(echo ${VERSION})"
45+
echo "version=${VERSION}-PRE-${{ steps.pr_number.outputs.nr }}" >> $GITHUB_OUTPUT
46+
echo "plain-version=${VERSION}" >> $GITHUB_OUTPUT
4547
4648
4749
git-release:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Set version output
5555
id: out
56-
run: echo "::set-output name=version::$(echo ${VERSION})"
56+
run: echo "version=${VERSION}" >> $GITHUB_OUTPUT
5757

5858
deploy:
5959
name: "Release charts"

0 commit comments

Comments
 (0)