Skip to content

Commit

Permalink
Fix-ups to tag generating action (#3)
Browse files Browse the repository at this point in the history
* Use new GitHub output syntax

* Fix tag message
  • Loading branch information
zanieb authored and konstin committed Dec 28, 2023
1 parent e44f529 commit c5be91d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/permaref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "main"

jobs:
release:
create-permaref:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -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: |
Expand All @@ -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 }}

0 comments on commit c5be91d

Please sign in to comment.