Skip to content

Commit

Permalink
debug: ci
Browse files Browse the repository at this point in the history
Signed-off-by: Zach <[email protected]>
  • Loading branch information
Zach677 committed Aug 14, 2024
1 parent 588d1b5 commit a3fe5cf
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/check-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ jobs:
git remote add upstream https://github.com/Lakr233/NotchDrop
git fetch upstream --tags
- name: Debug Local Tags
run: |
echo "Local tags:"
git tag --list | sort -V
- name: Debug Upstream Tags
run: |
echo "Upstream tags:"
git ls-remote --tags upstream | awk -F'/' '{print $3}' | grep -v '{}$' | sort -V
- name: Filter and compare tags
id: check_tags
run: |
Expand All @@ -38,7 +48,18 @@ jobs:
echo latest_upstream_tag=$latest_upstream_tag >> $GITHUB_OUTPUT
else
echo new_release=false >> $GITHUB_OUTPUT
fi
- name: List all local tags for debugging
if: steps.check_tags.outputs.new_release == 'false'
run: |
echo "All local tags:"
git tag --list | sort -V
- name: List all upstream tags for debugging
if: steps.check_tags.outputs.new_release == 'false'
run: |
echo "All upstream tags:"
git ls-remote --tags upstream | awk -F'/' '{print $3}' | grep -v '{}$' | sort -V
- name: Create GitHub Release
if: steps.check_tags.outputs.new_release == 'true'
Expand Down

0 comments on commit a3fe5cf

Please sign in to comment.