Skip to content

Commit bf59ec7

Browse files
Update template-sync.yml
Upstream template sync fix
1 parent 0d80616 commit bf59ec7

1 file changed

Lines changed: 15 additions & 18 deletions

File tree

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,40 @@
1-
# File: .github/workflows/template-sync.yml
1+
name: Template Sync
22

33
on:
4-
# cronjob trigger
5-
# schedule:
6-
# - cron: "0 0 1 * *"
7-
# manual trigger
84
workflow_dispatch:
5+
96
jobs:
107
repo-sync:
118
runs-on: ubuntu-latest
12-
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
139
permissions:
1410
contents: write
1511
pull-requests: write
1612

1713
steps:
18-
# To use this repository's private action, you must check out the repository
1914
- name: Checkout
2015
uses: actions/checkout@v4
21-
# https://github.com/actions/checkout#usage
22-
# uncomment if you use submodules within the repository
23-
# with:
24-
# submodules: true
2516

26-
- name: actions-template-sync
17+
- name: Template Sync
2718
uses: AndreasAugustin/actions-template-sync@v2
2819
with:
2920
source_repo_path: OGCraftMC/Datapack-Template
30-
upstream_branch: <target_branch> # defaults to main
31-
create_pull_request: false
21+
upstream_branch: main # change if not main
22+
pr_branch_name_prefix: chore/template_sync
23+
pr_title: upstream merge template repository
24+
pr_labels: template_sync
25+
pr_commit_msg: chore(template): merge template changes :up:
26+
env:
27+
SOURCE_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
TARGET_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3229

33-
- name: Create Pull Request
30+
- name: Create Pull Request (fallback)
3431
uses: peter-evans/create-pull-request@v6
3532
with:
3633
token: ${{ secrets.GITHUB_TOKEN }}
37-
commit-message: chore: template sync
38-
title: chore: template sync
34+
commit-message: chore(template): merge template changes :up:
35+
title: upstream merge template repository
3936
body: |
40-
Automated sync from template.
37+
This PR was created automatically by the template sync workflow.
4138
branch: chore/template_sync
4239
delete-branch: false
4340
labels: template_sync

0 commit comments

Comments
 (0)