From be75ff8ffb3d52c8a2e06deb2304ba2cd9f13ac6 Mon Sep 17 00:00:00 2001 From: Oleg Chepelev Date: Sun, 21 Jul 2024 15:46:34 +0300 Subject: [PATCH] upd template-sync --- .github/workflows/template-sync.yml | 39 ++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/.github/workflows/template-sync.yml b/.github/workflows/template-sync.yml index 2543a66..b849264 100644 --- a/.github/workflows/template-sync.yml +++ b/.github/workflows/template-sync.yml @@ -1,7 +1,38 @@ +# 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: ,[,...] # optional, no default + on: # cronjob trigger schedule: - - cron: '0 0 1 * *' + - cron: "0 0 1 * *" # manual trigger workflow_dispatch: jobs: @@ -17,14 +48,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 # https://github.com/actions/checkout#usage - # uncomment if you use submodules within the source repository + # uncomment if you use submodules within the repository # with: # submodules: true - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v1 + 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: ,[,...] # optional, no default + pr_labels: ,[,...] # defaults to template_sync