From 35276bfe41fe6bb690175119953eaf8b50ee1cd6 Mon Sep 17 00:00:00 2001 From: Chhin Sras <31751665+chhinsras@users.noreply.github.com> Date: Wed, 24 May 2023 15:30:10 +0700 Subject: [PATCH] Update and rename .github/workflows/actions-template-sync.yml to actions-template-sync.yml --- .github/workflows/actions-template-sync.yml | 25 --------------------- actions-template-sync.yml | 23 +++++++++++++++++++ 2 files changed, 23 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/actions-template-sync.yml create mode 100644 actions-template-sync.yml diff --git a/.github/workflows/actions-template-sync.yml b/.github/workflows/actions-template-sync.yml deleted file mode 100644 index c693a6f2..00000000 --- a/.github/workflows/actions-template-sync.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: actions-template-sync - -on: - # cronjob trigger At 00:00 on day-of-month 1. https://crontab.guru/every-month - schedule: - - cron: "0 0 1 * *" - # manual trigger - workflow_dispatch: - -jobs: - test-implementation-job: - - runs-on: ubuntu-latest - - steps: - # To use this repository's private action, you must check out the repository - - - name: Checkout - uses: actions/checkout@v3 - - - name: Test action step PAT - uses: AndreasAugustin/actions-template-sync@v0.8.0 - with: - github_token: ${{ secrets.SOURCE_REPO_PAT }} - source_repo_path: ${{ secrets.SOURCE_REPO_PATH }} # , should be within secrets diff --git a/actions-template-sync.yml b/actions-template-sync.yml new file mode 100644 index 00000000..59b4ed60 --- /dev/null +++ b/actions-template-sync.yml @@ -0,0 +1,23 @@ +# File: .github/workflows/template-sync.yml + +on: + # cronjob trigger + schedule: + - cron: "0 0 1 * *" + # manual trigger + workflow_dispatch: +jobs: + repo-sync: + runs-on: ubuntu-latest + + steps: + # To use this repository's private action, you must check out the repository + - name: Checkout + uses: actions/checkout@v3 + - name: actions-template-sync + uses: AndreasAugustin/actions-template-sync@v0.8.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + source_repo_path: 'chhinsras/soybean-admin' + upstream_branch: 'main' # defaults to main + pr_labels: ,[,...] # optional, no default