Ver Fonte

ci(cache): create cache releases as prereleases so they never take Latest

TheWildJames há 1 semana atrás
pai
commit
315d353692

+ 1 - 1
.github/actions/cache-archive/action.yml

@@ -62,7 +62,7 @@ runs:
           echo "Creating release: $TAG_NAME"
           GIT_COMMITTER_DATE="2015-01-01T12:00:00" git tag -a "$TAG_NAME" -m "General Cache Storage"
           git push origin "$TAG_NAME" --force || true
-          gh release create "$TAG_NAME" --title "General Cache" --notes "Automated storage for build assets" --repo "$TARGET_REPO" || true
+          gh release create "$TAG_NAME" --title "General Cache" --notes "Automated storage for build assets" --prerelease --repo "$TARGET_REPO" || true
         fi
 
         # Check if path exists

+ 1 - 1
.github/actions/cache-save/action.yml

@@ -82,7 +82,7 @@ runs:
           echo "Release '$TAG_NAME' not found. Creating release..."
           # ensure tag is pushed before creating release
           git push origin "$TAG_NAME" --force >/dev/null 2>&1 || true
-          gh release create "$TAG_NAME" --title "General Cache" --notes "Automated storage for build assets" --repo "$TARGET_REPO" || true
+          gh release create "$TAG_NAME" --title "General Cache" --notes "Automated storage for build assets" --prerelease --repo "$TARGET_REPO" || true
           # verify
           if gh release view "$TAG_NAME" --repo "$TARGET_REPO" >/dev/null 2>&1; then
             echo "Release '$TAG_NAME' created."