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

View File

@@ -6,7 +6,8 @@ For internal documentation, please see the Moda directory in the internal Docs E
1. [Why staging servers?](#why-staging-servers) 1. [Why staging servers?](#why-staging-servers)
1. [What are staging servers?](#what-are-staging-servers) 1. [What are staging servers?](#what-are-staging-servers)
1. [How do staging deploys work from docs-internal?](#how-do-they-work) 1. [How do staging deploys work from docs-internal?](#how-do-staging-deploys-work-from-docs-internal)
1. [How do review server deploys work from docs-internal?](#how-do-review-server-deploys-work-from-docs-internal)
1. [Keeping build configurations in sync](#keeping-build-configurations-in-sync) 1. [Keeping build configurations in sync](#keeping-build-configurations-in-sync)
## Why staging servers? ## Why staging servers?