Merge pull request #2 from Sea-Haven-Industries/feature/fix-rollout-script

Fix false-positive existence check in rollout script
This commit is contained in:
Adam Moussa 2026-05-06 18:09:55 -04:00 • committed by GitHub
commit 4a1d53aca2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,8 +47,7 @@ for repo in $repos; do
echo "" echo ""
echo "--- $repo ---" echo "--- $repo ---"
existing=$(gh api "repos/$ORG/$repo/contents/$WORKFLOW_PATH" --jq '.sha' 2>/dev/null || true) if gh api "repos/$ORG/$repo/contents/$WORKFLOW_PATH" --jq '.sha' > /dev/null 2>&1; then
if [[ -n "$existing" ]]; then
echo "SKIP $repo (workflow already exists)" echo "SKIP $repo (workflow already exists)"
continue continue
fi fi