diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 7bfcbce..156f31b 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -23,10 +23,12 @@ jobs: shell: python id: get_next_tag run: | + import os import setuptools_scm from packaging import version v = version.parse(setuptools_scm.get_version()) - print(f"::set-output tag=v{v.major}.{v.minor + 1}.0") + with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: + print(f'tag=v{v.major}.{v.minor + 1}.0', file=fh) - name: Debug the next tag run: echo ${{ steps.get_next_tag.outputs.tag }}