Skip to content

Commit cf30611

Browse files
authored
Merge pull request #15 from lpm0073/next
refactor versionBump.yml to remove deprecated set-output
2 parents 27f4046 + fbac0d2 commit cf30611

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/versionBump.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,29 @@
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.PAT }}
4545

46+
- name: null step
47+
id: null_step
48+
run: echo "i ensure that NEXT_VERSION is set."
49+
4650
- name: Check versions
4751
id: check_versions
4852
run: |
4953
if [ "$CURRENT_VERSION" != "$NEXT_VERSION" ]; then
50-
echo "::set-output name=version_changed::true"
54+
echo "VERSION_CHANGED=true" >> $GITHUB_ENV
5155
else
52-
echo "::set-output name=version_changed::false"
56+
echo "VERSION_CHANGED=false" >> $GITHUB_ENV
5357
fi
5458
env:
5559
CURRENT_VERSION: ${{ env.CURRENT_VERSION }}
5660
NEXT_VERSION: ${{ env.NEXT_VERSION }}
5761

62+
- name: another null step
63+
id: another_null_step
64+
run: echo "i ensure that CURRENT_VERSION, NEXT_VERSION and VERSION_CHANGED are set."
65+
66+
5867
- name: Update __version__
59-
if: steps.check_versions.outputs.version_changed == 'true'
68+
if: env.VERSION_CHANGED == 'true'
6069
id: update_version
6170
run: |
6271
echo "__version__ = '${{ env.NEXT_VERSION }}'" > __version__.py
@@ -67,5 +76,5 @@
6776
git push https://${{ secrets.PAT }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }}
6877
env:
6978
GITHUB_TOKEN: ${{ secrets.PAT }}
70-
CURRENT_VERSION: ${{ env.CURRENT_VERSION }}
7179
NEXT_VERSION: ${{ env.NEXT_VERSION }}
80+
VERSION_CHANGED: ${{ env.VERSION_CHANGED }}

__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.10'
1+
__version__ = '0.1.11'

0 commit comments

Comments
 (0)