Skip to content

Commit 58cf475

Browse files
authored
Fix the use of deprecated set-output command (#1223)
1 parent 8e43def commit 58cf475

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/push.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
uses: actions/checkout@v3
3232

3333
- name: Get tag name
34-
id: get_tag_name
35-
run: echo "::set-output name=tag::$(echo "${{ github.ref }}" | grep -oP 'refs/tags/\K(.+)')"
34+
run: echo "TAG=$(echo "${{ github.ref }}" | grep -oP 'refs/tags/\K(.+)')" >> $GITHUB_ENV
3635

3736
- name: Build and push
3837
id: build_and_push
@@ -57,7 +56,7 @@ jobs:
5756
npm install -g @devcontainers/cli
5857
build/vscdc push --page ${{ matrix.page }} \
5958
--pageTotal ${{ matrix.page-total }} \
60-
--release ${{ steps.get_tag_name.outputs.tag }} \
59+
--release ${{ env.TAG }} \
6160
--github-repo ${{ github.repository }} \
6261
--registry "$REGISTRY" \
6362
--registry-path "$REGISTRY_BASE_PATH" \

0 commit comments

Comments
 (0)