Fix tag checking to fetch tags from remote
Co-authored-by: wheaney <42350981+wheaney@users.noreply.github.com>
This commit is contained in:
parent
98893acbc6
commit
54457d9283
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get version from VERSION file
|
- name: Get version from VERSION file
|
||||||
id: get-version
|
id: get-version
|
||||||
|
|
@ -30,6 +30,7 @@ jobs:
|
||||||
id: check-tag
|
id: check-tag
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(cat VERSION)
|
VERSION=$(cat VERSION)
|
||||||
|
git fetch --tags
|
||||||
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
||||||
echo "Tag v$VERSION already exists, skipping release"
|
echo "Tag v$VERSION already exists, skipping release"
|
||||||
echo "should-release=false" >> $GITHUB_OUTPUT
|
echo "should-release=false" >> $GITHUB_OUTPUT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue