File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 6767 needs : [macOS, Docker_Linux]
6868 runs-on : ubuntu-latest
6969 steps :
70+ - name : Increment Release Version
71+ id : release_ver
72+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
73+ run : |
74+ curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/latest | jq -r '[.tag_name][0] | split(".") as $ver | $ver[-1]|tonumber as $last | $ver[:-1] as $first | $first + [$last+1] | map(tostring) | join(".")' > version
75+ echo "::set-output name=VERSION::$(<version)"
76+ env :
77+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7078 - name : Download all artifacts
7179 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
7280 uses : actions/download-artifact@v2
7987 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
8088 uses : softprops/action-gh-release@v1
8189 with :
90+ tag_name : ${{ steps.release_ver.outputs.VERSION }}
8291 files : releases/*/*.xz
8392 env :
8493 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments