|
@ -507,13 +507,13 @@ jobs: |
|
|
# the annotated tag is visible in the "commit" action, but looks like a |
|
|
# the annotated tag is visible in the "commit" action, but looks like a |
|
|
# lightweight tag in the "tag" action |
|
|
# lightweight tag in the "tag" action |
|
|
# |
|
|
# |
|
|
# So, instead of: |
|
|
# It appears that the repository that is checked out as part of a tag |
|
|
# TAGTYPE=$(git cat-file -t $GITHUB_REF) |
|
|
# action does not have the correct tag object in it. As a work around, |
|
|
# We try to build a workaround |
|
|
# we do a force pull of the repo to get the correct tag details. |
|
|
- name: Get Tag Type |
|
|
- name: Get Tag Type |
|
|
run: | |
|
|
run: | |
|
|
git pull --tags --force |
|
|
git pull --tags --force origin HEAD |
|
|
if git cat-file tag $GITHUB_REF; then TYPE=tag; else TYPE=commit; fi |
|
|
TYPE=$(git cat-file -t $GITHUB_REF) |
|
|
echo "::set-output name=TAGTYPE::$TYPE" |
|
|
echo "::set-output name=TAGTYPE::$TYPE" |
|
|
|
|
|
|
|
|
echo ================Debug |
|
|
echo ================Debug |
|
|