Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add template-sync action to splashpage #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/template-sync.yaml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions .templatesyncignore
Original file line number Diff line number Diff line change
@@ -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/*-*