Skip to content

.github/workflows/template-sync.yml #29

.github/workflows/template-sync.yml

.github/workflows/template-sync.yml #29

Workflow file for this run

on:
# cronjob trigger once a day
schedule:
- cron: "0 0 * * 0"
# 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
with:
# submodules: true
token: ${{ secrets.TEMPLATE_SYNC_TOKEN }}
- name: actions-template-sync
uses: AndreasAugustin/actions-template-sync@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_repo_path: codersforcauses/django-nextjs-template
upstream_branch: main