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
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get version from VERSION file
|
||||
id: get-version
|
||||
|
|
@ -30,6 +30,7 @@ jobs:
|
|||
id: check-tag
|
||||
run: |
|
||||
VERSION=$(cat VERSION)
|
||||
git fetch --tags
|
||||
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
||||
echo "Tag v$VERSION already exists, skipping release"
|
||||
echo "should-release=false" >> $GITHUB_OUTPUT
|
||||
|
|
|
|||
Loading…
Reference in New Issue