diff --git a/.github/template-sync.yaml b/.github/template-sync.yaml new file mode 100644 index 0000000..1bab28d --- /dev/null +++ b/.github/template-sync.yaml @@ -0,0 +1,34 @@ +name: 'Sync to Template' + +on: + # cronjob trigger (minute, hour, day, month, day-of-week; here 1st of 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 + # comment token (and add .github path to .templatesyncignore) + # if you do not want actions and workflows updated + with: + token: ${{ secrets.GH_PAT }} + + - name: actions-template-sync + uses: AndreasAugustin/actions-template-sync@v2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + source_repo_path: uwhackweek/splashpage-template + upstream_branch: main # defaults to main + is_force_deletion: True + git_remote_pull_params: --allow-unrelated-histories --squash --strategy=recursive -X theirs \ No newline at end of file diff --git a/.templatesyncignore b/.templatesyncignore new file mode 100644 index 0000000..c10b23c --- /dev/null +++ b/.templatesyncignore @@ -0,0 +1,10 @@ +# THIS FILE CANNOT BE SYNCED +# use glob patterns as in .gitignore + +# may want to ignore in your implementation (uncomment the line with the filename [pattern]) + +# configuration files +# cookiecutter.yaml + +# team member files +# team/*-* \ No newline at end of file