mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Try a different way to fetch the right tag data
This commit is contained in:
parent
9b081805f5
commit
71021abd97
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
|
@ -503,11 +503,18 @@ jobs:
|
|||
# normally, `git for-each-ref refs/tags` will show annotated tags
|
||||
# with a type of "tag" and lightweight with type "commit".
|
||||
# But not in the github runner environment...
|
||||
#
|
||||
# Additionally, it seems that if you push both a commit and an annotated
|
||||
# tag at the same time, two workflow actions start (as expected), and
|
||||
# the annotated tag is visible in the "commit" action, but looks like a
|
||||
# lightweight tag in the "tag" action
|
||||
#
|
||||
# So, instead of:
|
||||
# TAGTYPE=$(git cat-file -t $GITHUB_REF)
|
||||
# We build a workaround
|
||||
# We try to build a workaround
|
||||
- name: Get Tag Type
|
||||
run: |
|
||||
git pull --tags
|
||||
if git cat-file tag $GITHUB_REF; then TYPE=tag; else TYPE=commit; fi
|
||||
echo "::set-output name=TAGTYPE::$TYPE"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user