Skip to content

Commit 9e91e2b

Browse files
committed
add instructions
1 parent 176b18c commit 9e91e2b

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,33 @@ jobs:
9090
secrets:
9191
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
9292
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
93+
94+
## sync copilot instructions
95+
This workflow syncs Copilot instructions from this repo into another repo and opens a PR with the changes.
96+
97+
#### Inputs
98+
99+
- `ref`: Branch in this repo to sync from. Default: `main`
100+
101+
#### Example
102+
103+
```yaml
104+
name: Sync Copilot Instructions
105+
106+
on:
107+
workflow_dispatch:
108+
inputs:
109+
ref:
110+
description: "Branch to sync from"
111+
required: false
112+
type: string
113+
114+
jobs:
115+
sync-copilot:
116+
uses: NHSDigital/eps-common-workflows/.github/workflows/sync_copilot.yml@f5c8313a10855d0cc911db6a9cd666494c00045a
117+
with:
118+
ref: ${{ github.event.inputs.ref }}
119+
```
93120
```
94121
## pr title check
95122
This workflow checks that all pull requests have a title that matches the required format, and comments on the PR with a link to the relevant ticket if a ticket reference is found.

0 commit comments

Comments
 (0)