Skip to content

Commit 1413204

Browse files
authored
fix: Additional condition on release workflow (#1604)
* fix: Attempt a cleaner forced update approach * fix: Grad missing tags * fix: test workflow * fix: test workflow * fix: Cleaning up
1 parent a0f5a9e commit 1413204

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
3535
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_SECRET }}
3636

37+
- name: Fetch newly created tags
38+
run: git fetch --tags
39+
3740
- name: Debug release-plz outputs
3841
env:
3942
PR: ${{ steps.release-plz.outputs.pr }}
@@ -100,6 +103,10 @@ jobs:
100103
- name: Identify c2patool release
101104
id: sniff-c2patool-release-tag
102105
run: |
106+
echo "All tags on HEAD:"
107+
git tag --contains HEAD
108+
echo "Filtered c2patool tags:"
109+
git tag --contains HEAD | grep '^c2patool-' || echo "No c2patool tags found"
103110
echo tag=`git tag --contains HEAD | grep '^c2patool-'` >> "$GITHUB_OUTPUT" || true
104111
105112
publish-c2patool-binaries:

0 commit comments

Comments
 (0)