Просмотр исходного кода

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

TheWildJames 1 неделя назад
Родитель
Сommit
315d353692
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      .github/actions/cache-archive/action.yml
  2. 1 1
      .github/actions/cache-save/action.yml

+ 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."