-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (30 loc) · 1.02 KB
/
template-sync.yml
File metadata and controls
33 lines (30 loc) · 1.02 KB
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
name: Template Sync
on:
# cronjob trigger - runs monthly on the 1st at midnight
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
repo-sync:
runs-on: ubuntu-latest
if: github.repository != 'AOSSIE-Org/Template-Repo'
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
contents: write
pull-requests: write
steps:
# Check out the repository
- name: Checkout
uses: actions/checkout@v4
# https://github.com/actions/checkout#usage
# uncomment if you use submodules within the repository
# with:
# submodules: true
- name: actions-template-sync
uses: AndreasAugustin/actions-template-sync@v2
with:
source_repo_path: AOSSIE-Org/Template-Repo
upstream_branch: main # defaults to main
pr_labels: template_sync,auto_pr # defaults to template_sync
source_gh_token: ${{ secrets.GITHUB_TOKEN }}
is_pr_cleanup: true # for not open multiple PRs