diff --git a/.github/workflows/permaref.yaml b/.github/workflows/permaref.yaml index 29b5dbef..eee99e6f 100644 --- a/.github/workflows/permaref.yaml +++ b/.github/workflows/permaref.yaml @@ -9,7 +9,7 @@ on: - "main" jobs: - release: + create-permaref: runs-on: ubuntu-latest steps: - name: Checkout @@ -21,10 +21,10 @@ jobs: # Enable pipefail so git command failures do not result in null versions downstream set -x - echo ::set-output name=LAST_PERMA_NUMBER::$(\ + echo "LAST_PERMA_NUMBER=$(\ git ls-remote --tags --refs --sort="v:refname" \ https://github.com/zanieb/pubgrub.git | grep "tags/perma-" | tail -n1 | sed 's/.*\/perma-//' \ - ) + )" >> $GITHUB_OUTPUT - name: Configure Git run: | @@ -34,7 +34,7 @@ jobs: - name: Create and push the new tag run: | TAG="perma-$((LAST_PERMA_NUMBER + 1))" - git tag -a "$TAG" -m "Automatically created on push to `main`" + git tag -a "$TAG" -m 'Automatically created on push to `main`' git push origin "$TAG" env: LAST_PERMA_NUMBER: ${{ steps.get_version.outputs.LAST_PERMA_NUMBER }}