Skip to content

Commit

Permalink
Use modern way for GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Mar 8, 2024
1 parent 4ecfd41 commit 4da30f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 4da30f9

Please sign in to comment.