Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/propagate-copilot-instructions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" \
Expand Down