Skip to content

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

.github/workflows/template-sync.yml

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

Workflow file for this run

# on:
# # cronjob trigger
# 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 source repository
# # with:
# # submodules: true
# - name: actions-template-sync
# uses: AndreasAugustin/actions-template-sync@v1
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# source_repo_path: yorkblansh/devcontainer-template
# upstream_branch: master # defaults to main
# # pr_labels: <label1>,<label2>[,...] # optional, no default
on:
# cronjob trigger
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/actions-template-sync@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_repo_path: yorkblansh/devcontainer-template
upstream_branch: master # defaults to main
pr_labels: <label1>,<label2>[,...] # defaults to template_sync