Skip to content

Commit f68e87b

Browse files
authored
Migrate from set-output to $GITHUB_OUTPUT usage (#8557)
This change resolves deprecation warnings thrown during GitHub workflow runs. https://github.blog/changelog/2022-10-10-github-actions-deprecating-save-state-and-set-output-commands/
1 parent 2624889 commit f68e87b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_and_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- id: extract_tag
1515
name: Extract tag name
16-
run: echo "::set-output name=tag::$(echo $GITHUB_REF | cut -d / -f 3)"
16+
run: echo "tag=$(echo $GITHUB_REF | cut -d / -f 3)" >> "$GITHUB_OUTPUT"
1717

1818
build-and-publish-test-pypi:
1919
needs: extract-tag
@@ -39,7 +39,7 @@ jobs:
3939
echo "Checking if $VERSION for $PACKAGE_NAME exists on TestPyPI"
4040
NEW_VERSION=$(python3 .github/workflows/build_utils/test_version.py $PACKAGE_NAME $VERSION)
4141
echo "Version to be used for TestPyPI release: $NEW_VERSION"
42-
echo "::set-output name=version::$NEW_VERSION"
42+
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
4343
- name: Update version in pyproject.toml
4444
run: sed -i '/#replace_package_version_marker/{n;s/version="[^"]*"/version="${{ steps.check_version.outputs.version }}"/;}' pyproject.toml
4545
- name: Update package name in pyproject.toml

0 commit comments

Comments
 (0)