diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 406e2da3..64a701e6 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -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: | @@ -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 }} \ No newline at end of file + name: ${{ github.event.inputs.tag_name }}