|
@@ -87,6 +87,7 @@ runs:
|
|
|
|
|
|
|
|
if gh release view "$tag_name" --repo "$TARGET_REPO" >/dev/null 2>&1; then
|
|
if gh release view "$tag_name" --repo "$TARGET_REPO" >/dev/null 2>&1; then
|
|
|
echo "Release '$tag_name' already exists. Ready for upload."
|
|
echo "Release '$tag_name' already exists. Ready for upload."
|
|
|
|
|
+ gh release edit "$tag_name" --latest=false --repo "$TARGET_REPO" >/dev/null 2>&1 || true
|
|
|
return 0
|
|
return 0
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
@@ -94,13 +95,15 @@ runs:
|
|
|
echo "Tag '$tag_name' not found. Creating backdated tag and release..."
|
|
echo "Tag '$tag_name' not found. Creating backdated tag and release..."
|
|
|
GIT_COMMITTER_DATE="2015-01-01T12:00:00" git tag -a "$tag_name" -m "Build Cache Storage"
|
|
GIT_COMMITTER_DATE="2015-01-01T12:00:00" git tag -a "$tag_name" -m "Build Cache Storage"
|
|
|
if git push origin "$tag_name" --force; then
|
|
if git push origin "$tag_name" --force; then
|
|
|
- gh release create "$tag_name" --title "Build Cache" --notes "Automated storage for build assets" --repo "$TARGET_REPO" || true
|
|
|
|
|
|
|
+ gh release create "$tag_name" --title "Build Cache" --notes "Automated storage for build assets" --latest=false --repo "$TARGET_REPO" || true
|
|
|
|
|
+ gh release edit "$tag_name" --latest=false --repo "$TARGET_REPO" >/dev/null 2>&1 || true
|
|
|
else
|
|
else
|
|
|
echo "Push failed, tag might have been created by a parallel job. Continuing..."
|
|
echo "Push failed, tag might have been created by a parallel job. Continuing..."
|
|
|
fi
|
|
fi
|
|
|
else
|
|
else
|
|
|
echo "Tag '$tag_name' already exists but release is missing. Creating release..."
|
|
echo "Tag '$tag_name' already exists but release is missing. Creating release..."
|
|
|
- gh release create "$tag_name" --title "Build Cache" --notes "Automated storage for build assets" --repo "$TARGET_REPO" || true
|
|
|
|
|
|
|
+ gh release create "$tag_name" --title "Build Cache" --notes "Automated storage for build assets" --latest=false --repo "$TARGET_REPO" || true
|
|
|
|
|
+ gh release edit "$tag_name" --latest=false --repo "$TARGET_REPO" >/dev/null 2>&1 || true
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
|
|
|