diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 92689a56..3375060c 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -85,9 +85,9 @@ jobs: run: | ref=${{ github.ref }} [ "${ref::10}" = 'refs/tags/' ] && tag=${ref:10} || tag=${{ github.event.inputs.tag }} - if echo ${tag#v} | grep -qxE '[0-9]+(\.[0-9]+)*' ; then final=true; else final=false; fi - echo ::set-output name=tag::$tag - echo ::set-output name=final::$final + if echo ${tag#v} | grep -qxE '[0-9]+(\.[0-9]+)*' ; then release=final; else release=prerelease; fi + echo ::set-output name=tag::${tag#v} + echo ::set-output name=release::$release - name: Install dependencies run: | @@ -118,7 +118,7 @@ jobs: PASSWORD: ${{ secrets.GITHUB_HOMEBREW_TOKEN }} - name: Make a brew PR from pypi’s metadata - if: ${{ steps.name.outputs.final }} + if: ${{ steps.name.outputs.release == 'final' }} run: | jq_script=`printf '.releases."%s"[]? | select(.python_version == "source") | @text "--url=\(.url) --sha256=\(.digests.sha256)"' ${{ steps.name.outputs.tag }}` brew bump-formula-pr --strict --no-browse `curl -s https://pypi.org/pypi/pympress/json | jq -r "$jq_script"` pympress