diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 69c719e..598b894 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -22,7 +22,7 @@ updates: commit-message: prefix: "Upgrade: [dependabot] - " cooldown: - default-days: 3 + default-days: 7 ################################### # Poetry ######################### ################################### @@ -37,7 +37,7 @@ updates: prefix: "Upgrade: [dependabot] - " versioning-strategy: increase cooldown: - default-days: 3 + default-days: 7 ################################### # NPM workspace ################## ################################### @@ -54,4 +54,4 @@ updates: registries: - npm-github cooldown: - default-days: 3 + default-days: 7 diff --git a/README.md b/README.md index cf68174..8ab0464 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This repository contains the shared GitHub Copilot instruction files used across The action is intended to be called from another repository. It: 1. Checks out the calling repository at the requested base branch -2. Checks out the central source repository at the requested ref +2. Checks out copilot instruction files from copilot_instructions_ref repository at the requested ref 3. Replaces the target repository's Copilot instruction files with the shared versions 4. Creates a signed pull request containing the sync changes @@ -35,7 +35,7 @@ Existing copies of those paths in the calling repository are removed before the | Input | Required | Default | Description | | --- | --- | --- | --- | -| `common_workflows_ref` | No | `main` | Git ref to check out from the central source repository | +| `copilot_instructions_ref` | No | `main` | Git ref to check out from the eps-copilot-instructions repository | | `calling_repo_base_branch` | No | `main` | Base branch in the calling repository that the pull request should target | | `CREATE_PULL_REQUEST_APP_ID` | Yes | None | GitHub App ID used to generate a token for pull request creation | | `CREATE_PULL_REQUEST_PEM` | Yes | None | GitHub App private key in PEM format | @@ -61,7 +61,7 @@ jobs: - name: Sync shared instructions uses: NHSDigital/eps-copilot-instructions@95118f6746ca7081258cc7f651dca1c5bb7339f1 with: - common_workflows_ref: main + copilot_instructions_ref: main calling_repo_base_branch: main CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }} CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }} diff --git a/action.yml b/action.yml index ec71014..4e36782 100644 --- a/action.yml +++ b/action.yml @@ -1,8 +1,8 @@ name: Sync Copilot Instructions description: "Syncs Copilot instructions from the repository to the GitHub Action's metadata file." inputs: - common_workflows_ref: - description: "The ref to sync from the central repository" + copilot_instructions_ref: + description: "The ref to sync from the eps-copilot-instructions repository" required: false default: "main" calling_repo_base_branch: @@ -27,7 +27,7 @@ runs: - name: Checkout central repo code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: - ref: ${{ inputs.common_workflows_ref }} + ref: ${{ inputs.copilot_instructions_ref }} fetch-depth: 0 path: eps-copilot-instructions repository: NHSDigital/eps-copilot-instructions @@ -66,7 +66,7 @@ runs: title: "Upgrade: [dependabot] - sync Copilot instructions" body: | Syncing Copilot instructions from central repo. - Ref: `${{ inputs.common_workflows_ref }}` + Ref: `${{ inputs.copilot_instructions_ref }}` branch: copilot-instructions-sync base: ${{ inputs.calling_repo_base_branch }} branch-suffix: random