generated from uwhackweek/jupyterbook-template
-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (30 loc) · 1.09 KB
/
template-sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 'Sync to Template'
on:
# cronjob trigger (minute, hour, day, month, day-of-week; here 1st of month)
# schedule:
# - cron: "0 0 1 * *"
# manual trigger
workflow_dispatch:
jobs:
repo-sync:
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
contents: write
pull-requests: write
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v4
# comment token (and add .github path to .templatesyncignore)
# if you do not want actions and workflows updated
with:
token: ${{ secrets.GH_PAT }}
- name: actions-template-sync
uses: AndreasAugustin/actions-template-sync@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_repo_path: uwhackweek/jupyterbook-template
upstream_branch: main # defaults to main
is_force_deletion: True
git_remote_pull_params: --allow-unrelated-histories --squash --strategy=recursive -X theirs