From 4da30f9a5e1a2b2d2a5b6921fbe63d04d45344b8 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Fri, 8 Mar 2024 21:30:36 +0100 Subject: [PATCH] Use modern way for GITHUB_OUTPUT --- .github/workflows/bump.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }}