diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb6d6132..339eca11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,14 @@ jobs: needs: [macOS, Docker_Linux] runs-on: ubuntu-latest steps: + - name: Increment Release Version + id: release_ver + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + run: | + 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 + echo "::set-output name=VERSION::$(