Compare commits
2 Commits
d15ecd926c
...
ddbc6affd1
| Author | SHA1 | Date | |
|---|---|---|---|
| ddbc6affd1 | |||
| cd41eea0d9 |
@@ -33,13 +33,14 @@ jobs:
|
|||||||
git fetch --force --tags origin
|
git fetch --force --tags origin
|
||||||
git fetch --force origin main:refs/remotes/origin/main
|
git fetch --force origin main:refs/remotes/origin/main
|
||||||
|
|
||||||
LAST_TAG=$(git log --first-parent --decorate=short --simplify-by-decoration --oneline origin/main \
|
LAST_TAG=$(git for-each-ref \
|
||||||
| grep -oE 'tag: v[^,)]+' \
|
--sort=-creatordate \
|
||||||
| head -n 1 \
|
--format='%(refname:strip=2)' \
|
||||||
| sed 's/tag: //')
|
refs/tags/v* \
|
||||||
|
| head -n 1)
|
||||||
|
|
||||||
if [[ -z "${LAST_TAG:-}" ]]; then
|
if [[ -z "${LAST_TAG:-}" ]]; then
|
||||||
echo "No release tag found"
|
echo "No tag found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -61,7 +62,7 @@ jobs:
|
|||||||
|
|
||||||
echo "Last tag: $LAST_TAG"
|
echo "Last tag: $LAST_TAG"
|
||||||
echo "Last tag commit: $LAST_COMMIT"
|
echo "Last tag commit: $LAST_COMMIT"
|
||||||
echo "Distance to origin/main (first-parent): $DISTANCE"
|
echo "Distance to origin/main: $DISTANCE"
|
||||||
echo "Final version: $VERSION"
|
echo "Final version: $VERSION"
|
||||||
|
|
||||||
- name: Set .NET version variables
|
- name: Set .NET version variables
|
||||||
|
|||||||
Reference in New Issue
Block a user