mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 03:43:10 +00:00
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:
commit
4a1d53aca2
1 changed files with 1 additions and 2 deletions
|
|
@ -47,8 +47,7 @@ for repo in $repos; do
|
|||
echo ""
|
||||
echo "--- $repo ---"
|
||||
|
||||
existing=$(gh api "repos/$ORG/$repo/contents/$WORKFLOW_PATH" --jq '.sha' 2>/dev/null || true)
|
||||
if [[ -n "$existing" ]]; then
|
||||
if gh api "repos/$ORG/$repo/contents/$WORKFLOW_PATH" --jq '.sha' > /dev/null 2>&1; then
|
||||
echo "SKIP $repo (workflow already exists)"
|
||||
continue
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue