Skip to content

Sync from template

Sync from template #2

name: Sync from template
on:
# cronjob trigger
schedule:
- cron: "0 0 1 * *"
# manual trigger
workflow_dispatch:
jobs:
repo-sync:
runs-on: ubuntu-latest
permissions: # I don't think these are actually needed, but haven't tested without.
contents: write
pull-requests: write
actions: write
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v4
with: #### This with: token: part is what fixed it for me ####
token: ${{ secrets.ACTIONS_TOKEN }}
- name: actions-template-sync
uses: AndreasAugustin/actions-template-sync@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_repo_path: alshedivat/al-folio
upstream_branch: main # defaults to main
pr_labels: <label1>,<label2>[,...] # optional, no default