Fix release.yml
Browse files
.github/workflows/release.yml
CHANGED
@@ -50,10 +50,10 @@ jobs:
|
|
50 |
- name: Move the existing mutable tag
|
51 |
# https://github.com/softprops/action-gh-release/issues/171
|
52 |
run: |
|
|
|
53 |
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
|
54 |
# Determine if a given tag exists and matches a specific Git commit.
|
55 |
# actions/checkout@v4 fetch-tags doesn't work when triggered by schedule
|
56 |
-
git fetch --tags
|
57 |
if [ "$(git rev-parse -q --verify "refs/tags/$RELEASE_TAG")" = "$GITHUB_SHA" ]; then
|
58 |
echo "mutable tag $RELEASE_TAG exists and matches $GITHUB_SHA"
|
59 |
else
|
|
|
50 |
- name: Move the existing mutable tag
|
51 |
# https://github.com/softprops/action-gh-release/issues/171
|
52 |
run: |
|
53 |
+
git fetch --tags
|
54 |
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
|
55 |
# Determine if a given tag exists and matches a specific Git commit.
|
56 |
# actions/checkout@v4 fetch-tags doesn't work when triggered by schedule
|
|
|
57 |
if [ "$(git rev-parse -q --verify "refs/tags/$RELEASE_TAG")" = "$GITHUB_SHA" ]; then
|
58 |
echo "mutable tag $RELEASE_TAG exists and matches $GITHUB_SHA"
|
59 |
else
|