Update and rename .github/workflows/actions-template-sync.yml to actions-template-sync.yml
This commit is contained in:
parent
215c1ecbd9
commit
35276bfe41
25
.github/workflows/actions-template-sync.yml
vendored
25
.github/workflows/actions-template-sync.yml
vendored
@ -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
23
actions-template-sync.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user