1
0
mirror of synced 2026-01-10 00:03:04 -05:00

Fix sync workflow (#53862)

This commit is contained in:
Evan Bonsignori
2025-01-10 16:50:06 -08:00
committed by GitHub
parent 745da76bff
commit efe146e0f0
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
name: Sync Staging Repo Files
on:
workflow_dispatch:
push:
branches: [main]
paths:
@@ -50,7 +51,7 @@ jobs:
for i in $(seq 0 $NUMBER_OF_REPOS); do
repos+=("{\"repo\": \"github/docs-staging-$i\", \"index\": $i}")
done
json_repos=$(printf '%s\n' "${repos[@]}" | jq -s .)
json_repos=$(printf '%s\n' "${repos[@]}" | jq -s -c .)
echo "repos=$json_repos" >> $GITHUB_OUTPUT
- name: Set matrix output with repo and index