Skip to content

Commit

Permalink
Merge pull request #327 from hdefazio/fix/release_ci
Browse files Browse the repository at this point in the history
Grab the old release tag based on creation date
  • Loading branch information
mholder6 authored Dec 6, 2024
2 parents 9d6de07 + b7d9b77 commit 4548d44
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 4548d44

Please sign in to comment.