diff --git a/.github/workflows/propagate-copilot-instructions.yml b/.github/workflows/propagate-copilot-instructions.yml index 9b63569..488249d 100644 --- a/.github/workflows/propagate-copilot-instructions.yml +++ b/.github/workflows/propagate-copilot-instructions.yml @@ -40,6 +40,9 @@ jobs: source_repo="${{ github.repository }}" source_repo_name="${{ github.event.repository.name }}" + # Repositories to always ignore for propagation + ignored_repos=("cratis.github.io" "Workflows") + echo "Triggering sync for repositories in Cratis organization (source: $source_repo)..." echo "$repos" | jq -r '.[]' | while read -r repo; do # Skip the source repository to avoid infinite loop @@ -48,6 +51,19 @@ jobs: continue fi + # Skip repositories in the ignore list + skip=false + for ignored in "${ignored_repos[@]}"; do + if [ "$repo" = "$ignored" ]; then + skip=true + break + fi + done + if [ "$skip" = "true" ]; then + echo "Skipping $repo (in ignore list)" + continue + fi + echo "Triggering sync for Cratis/$repo..." if gh workflow run "sync-copilot-instructions.yml" \ --repo "Cratis/$repo" \