From 0de551a57adc2ce54fb23867a6e12b66cc371aad Mon Sep 17 00:00:00 2001
From: Zanie Blue <contact@zanie.dev>
Date: Thu, 16 Nov 2023 13:36:19 -0600
Subject: [PATCH] Fix-ups to tag generating action (#3)

* Use new GitHub output syntax

* Fix tag message
---
 .github/workflows/permaref.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 }}