Skip to content

Commit f49af73

Browse files
authored
ci: add template-sync (#416)
1 parent 7470953 commit f49af73

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/template-sync.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
dependents:
2+
- "bot-boilerplate"
3+
4+
files:
5+
- ".gitignore"
6+
7+
# Do not sync the workflow files
8+
- "!.github/workflows/template-sync.yml"
9+
- "!.github/template-sync.yml"
10+
11+
# Do not sync dependabot config
12+
- "!.github/dependabot.yml"

.github/workflows/template-sync.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Template sync
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_run: # setup this workflow as a dependency of others
6+
workflows: [ test ] # don't sync template unless tests and other important workflows have passed
7+
8+
jobs:
9+
template-sync:
10+
timeout-minutes: 20
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: ahmadnassri/action-workflow-run-wait@v1 # wait for workflow_run to be successful
17+
- uses: ahmadnassri/action-workflow-queue@v1 # avoid conflicts, by running this template one at a time
18+
- uses: ahmadnassri/action-template-repository-sync@v1
19+
with:
20+
github-token: ${{ secrets.GH_TOKEN }}
21+
dry-run: true # Dry run for now

0 commit comments

Comments
 (0)