Skip to content

Commit 42e0010

Browse files
authored
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#992)
* ci: Use GITHUB_OUTPUT envvar instead of set-output command * Quote envvar to match documentation
1 parent 71b3070 commit 42e0010

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
token: ${{ secrets.GH_ACCESS_TOKEN_TOM }}
1717

1818
- id: get-version
19-
run: echo "::set-output name=version::$(echo ${{ github.head_ref }} | sed 's|release/||')"
19+
run: echo "version=$(echo ${{ github.head_ref }} | sed 's|release/||')" >> "$GITHUB_OUTPUT"
2020

2121
- name: Use Node 16
2222
uses: actions/setup-node@v3
@@ -90,7 +90,7 @@ jobs:
9090
token: ${{ secrets.GH_ACCESS_TOKEN_TOM }}
9191

9292
- id: get-version
93-
run: echo "::set-output name=version::$(echo ${{ github.head_ref }} | sed 's|prerelease/||')"
93+
run: echo "version=$(echo ${{ github.head_ref }} | sed 's|prerelease/||')" >> "$GITHUB_OUTPUT"
9494

9595
- name: Use Node 16
9696
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)