File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 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
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 }}
Original file line number Diff line number Diff line change 1- __version__ = '0.1.10 '
1+ __version__ = '0.1.11 '
You can’t perform that action at this time.
0 commit comments