From 60f5dc28a5a9bc54e4f588f6ac456471a237826f Mon Sep 17 00:00:00 2001 From: woksin Date: Wed, 17 Jun 2026 13:47:16 +0200 Subject: [PATCH] Make Copilot bootstrap manual-only --- .github/workflows/bootstrap-copilot-sync.yml | 14 +++++++------- README.md | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bootstrap-copilot-sync.yml b/.github/workflows/bootstrap-copilot-sync.yml index 07c97c6..83dab59 100644 --- a/.github/workflows/bootstrap-copilot-sync.yml +++ b/.github/workflows/bootstrap-copilot-sync.yml @@ -10,9 +10,8 @@ name: Bootstrap Copilot Sync # the content has changed since last run. # • Already up-to-date: skips processing. # -# Triggered automatically on push to main whenever this script changes -# (e.g. updated wrapper content or a new Copilot folder path). Can also -# be run manually at any time via workflow_dispatch. +# This workflow is intentionally manual. It performs org-wide writes and can +# consume a large GitHub REST API budget, so it should not run as a merge check. # # Requires PAT_WORKFLOWS secret with permissions: # Classic PAT: repo + workflow scopes @@ -32,18 +31,19 @@ name: Bootstrap Copilot Sync # changes. on: - push: - branches: ["main"] - paths: - - ".github/scripts/bootstrap-copilot-sync.sh" workflow_dispatch: permissions: contents: read +concurrency: + group: bootstrap-copilot-sync + cancel-in-progress: false + jobs: bootstrap: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Checkout diff --git a/README.md b/README.md index 69eb0df..a663e06 100644 --- a/README.md +++ b/README.md @@ -280,6 +280,8 @@ Lists all repositories in the Cratis organization and pushes the Copilot instruc **Trigger:** `workflow_dispatch` (run once, manually) +This workflow is intentionally manual because it performs organization-wide writes and can consume a large GitHub REST API budget. Use it for planned bootstrap or wrapper rollout work, not as a merge-triggered check. + One-time setup workflow. For every non-archived repository in the Cratis organization (except `Workflows` itself), it: 1. Creates a branch `add-copilot-sync-workflows`