Skip to content

Commit

Permalink
Grab the old release tag based on creation date
Browse files Browse the repository at this point in the history
Signed-off-by: Hannah DeFazio <h2defazio@gmail.com>
  • Loading branch information
hdefazio committed Dec 6, 2024
1 parent 9d6de07 commit b7d9b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Get latest tag
id: get_tag
run: |
echo "old_tag_name=$(git ls-remote --tags origin | awk -F'/' '{print $3}' | grep -v '{}' | sort -V | tail -n1)" >> $GITHUB_OUTPUT
echo "old_tag_name=$(git for-each-ref --sort=creatordate --format '%(refname)' refs/tags | awk -F'/' '{print $3}' | tail -n1)" >> $GITHUB_OUTPUT
- name: print tag
id: print_tag
run: |
Expand Down Expand Up @@ -100,4 +100,4 @@ jobs:
#this takes the path of payload to upload as an asset in the changelog
files: bin/*
generate_release_notes: true
name: ${{ github.event.inputs.tag_name }}
name: ${{ github.event.inputs.tag_name }}

0 comments on commit b7d9b77

Please sign in to comment.