-
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (30 loc) · 987 Bytes
/
sync-template.yml
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
35
36
name: Sync with upstream template
on:
schedule:
- cron: "0 0 * * 6" # Weekly on Saturday
workflow_dispatch:
env:
UPSTREAM_BRANCH: main
UPSTREAM_REPO: caffeine-addictt/template
jobs:
repo-sync:
# Skip if repository is the same as the template
if: github.repository != 'caffeine-addictt/template'
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
# https://github.com/actions/checkout#usage
# uncomment if you use submodules within the source repository
# with:
# submodules: true
- name: actions-template-sync
uses: AndreasAugustin/actions-template-sync@v1
with:
source_repo_path: ${{ env.UPSTREAM_REPO }}
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
pr_labels: "CI: Template Sync"