Skip to content

Commit f1cfeee

Browse files
committed
👷 Even better actions
1 parent bfd9620 commit f1cfeee

File tree

1 file changed

+18
-5
lines changed

1 file changed

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

33
on:
4+
# cronjob trigger
45
schedule:
5-
- cron: "0 0 1 * *"
6+
- cron: "0 0 1 * *"
7+
# manual trigger
68
workflow_dispatch:
79
jobs:
810
repo-sync:
911
runs-on: ubuntu-latest
12+
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
13+
permissions:
14+
contents: write
15+
pull-requests: write
1016
if: github.repository != 'nicebots-xyz/botkit'
17+
1118
steps:
19+
# To use this repository's private action, you must check out the repository
1220
- name: Checkout
13-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
22+
# https://github.com/actions/checkout#usage
23+
# uncomment if you use submodules within the repository
24+
# with:
25+
# submodules: true
26+
1427
- name: actions-template-sync
15-
uses: AndreasAugustin/actions-template-sync@v0.4.2-draft
28+
uses: AndreasAugustin/actions-template-sync@v2
1629
with:
1730
github_token: ${{ secrets.GITHUB_TOKEN }}
1831
source_repo_path: nicebots-xyz/botkit
1932
upstream_branch: dev
20-
commit_message: "core: :twisted_rightwards_arrows: Merge remote template"
33+
pr_commit_msg: "core: :twisted_rightwards_arrows: Merge remote template"
2134
pr_title: "core: :twisted_rightwards_arrows: Merge remote template"

0 commit comments

Comments
 (0)