Skip to content

Commit fa65b1d

Browse files
committed
Fix-ups to tag generating action (#3)
* Use new GitHub output syntax * Fix tag message
1 parent 49b7108 commit fa65b1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/permaref.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- "main"
1010

1111
jobs:
12-
release:
12+
create-permaref:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
@@ -21,10 +21,10 @@ jobs:
2121
# Enable pipefail so git command failures do not result in null versions downstream
2222
set -x
2323
24-
echo ::set-output name=LAST_PERMA_NUMBER::$(\
24+
echo "LAST_PERMA_NUMBER=$(\
2525
git ls-remote --tags --refs --sort="v:refname" \
2626
https://github.com/zanieb/pubgrub.git | grep "tags/perma-" | tail -n1 | sed 's/.*\/perma-//' \
27-
)
27+
)" >> $GITHUB_OUTPUT
2828
2929
- name: Configure Git
3030
run: |
@@ -34,7 +34,7 @@ jobs:
3434
- name: Create and push the new tag
3535
run: |
3636
TAG="perma-$((LAST_PERMA_NUMBER + 1))"
37-
git tag -a "$TAG" -m "Automatically created on push to `main`"
37+
git tag -a "$TAG" -m 'Automatically created on push to `main`'
3838
git push origin "$TAG"
3939
env:
4040
LAST_PERMA_NUMBER: ${{ steps.get_version.outputs.LAST_PERMA_NUMBER }}

0 commit comments

Comments
 (0)