Skip to content

Commit 425b4e4

Browse files
committed
tidy
1 parent 0187671 commit 425b4e4

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/sync_copilot.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ on:
1313
required: false
1414
type: string
1515
default: main
16-
secrets:
17-
CREATE_PULL_REQUEST_APP_ID:
18-
required: true
19-
CREATE_PULL_REQUEST_PEM:
20-
required: true
2116

2217
jobs:
2318
sync:
2419
runs-on: ubuntu-22.04
20+
environment: "create_pull_request"
2521
permissions:
2622
contents: read
2723
pull-requests: write

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,15 @@ jobs:
111111
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
112112
```
113113
## Sync copilot instructions
114-
This workflow syncs Copilot instructions from this repo into another repo and opens a PR with the changes.
114+
This workflow syncs Copilot instructions from this repo into another repo and opens a PR with the changes.
115+
It uses the environment secrets CREATE_PULL_REQUEST_APP_ID and CREATE_PULL_REQUEST_PEM that are defined in the create_pull_request environment in each repo
115116

116117
#### Inputs
117118

118119
- `common_workflows_ref`: Branch in common workflows repo to sync from. Default: `main`
119120
- `calling_repo_base_branch`: The base branch in the calling repository. Default: `main`.
120121

121-
#### Secret Inputs
122122

123-
- `CREATE_PULL_REQUEST_APP_ID`: GitHub App ID used to generate an installation token.
124-
- `CREATE_PULL_REQUEST_PEM`: GitHub App private key used to generate an installation token.
125123

126124
#### Example
127125

0 commit comments

Comments
 (0)