Update and rename .github/workflows/actions-template-sync.yml to actions-template-sync.yml

This commit is contained in:
Chhin Sras 2023-05-24 15:30:10 +07:00 committed by GitHub
parent 215c1ecbd9
commit 35276bfe41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 25 deletions

View File

@ -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 }} # <owner/repo>, should be within secrets

23
actions-template-sync.yml Normal file
View File

@ -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: <label1>,<label2>[,...] # optional, no default