Skip to content

Commit 5ddfd72

Browse files
authored
Remove deprecated ::set-output usage (#4427)
The recommended way of output has changed. See this discussion for details: https://github.com/orgs/community/discussions/35994
2 parents 2298a24 + 98721d7 commit 5ddfd72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/docker.yml

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

2626
- name: Get the version
2727
id: get_version
28-
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
28+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
2929

3030
- name: Build and push
3131
uses: docker/build-push-action@v2

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
3232
id: get_version
3333
run: |
34-
echo ::set-output name=VERSION::$(echo ${GITHUB_REF#refs/tags/v} | sed 's/-//')
34+
echo "VERSION=$(echo ${GITHUB_REF#refs/tags/v} | sed 's/-//')" >> $GITHUB_OUTPUT
3535
3636
# Set package version information in the 'setup.py' file based on the
3737
# released git tag information.

0 commit comments

Comments
 (0)