Sync template repository via pull request #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow for automatically syncing updates to the AstroWind template as pull requests (https://github.com/AndreasAugustin/actions-template-sync) | |
name: Sync template repository via pull request | |
on: | |
# cronjob trigger at 00:00 on day-of-month 1. https://crontab.guru/every-month | |
schedule: | |
- cron: "0 0 1 * *" | |
# manual trigger | |
workflow_dispatch: | |
jobs: | |
repo-sync: | |
runs-on: ubuntu-latest | |
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
# To use this repository's private action, you must 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/[email protected] | |
with: | |
source_repo_path: onwidget/astrowind | |
# upstream_branch: <target_branch> # defaults to main | |
# pr_labels: <label1>,<label2>[,...] # defaults to template_sync |