mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
refactoring workflow yaml
This commit is contained in:
parent
f96d31b78d
commit
1a14f4c272
12
.github/workflows/sync-workflow.yml
vendored
12
.github/workflows/sync-workflow.yml
vendored
@ -1,8 +1,8 @@
|
|||||||
name: GitHub Sync to Upstream Repository
|
name: Fork Sync with Upstream
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "00 20 * * 0" # every sunday at 20 hours
|
- cron: '0 7 * * 1,4'
|
||||||
workflow_dispatch: # on button click
|
# scheduled at 07:00 every Monday and Thursday
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync_with_upstream:
|
sync_with_upstream:
|
||||||
@ -22,11 +22,11 @@ jobs:
|
|||||||
id: sync
|
id: sync
|
||||||
uses: aormsby/Fork-Sync-With-Upstream-action@v2.0
|
uses: aormsby/Fork-Sync-With-Upstream-action@v2.0
|
||||||
with:
|
with:
|
||||||
upstream_repository: mail-in-a-box/mailinabox
|
upstream_repository: panr/hugo-theme-hello-friend
|
||||||
upstream_branch: master
|
upstream_branch: master
|
||||||
target_branch: upstream
|
target_branch: master
|
||||||
git_pull_args: --ff-only # optional arg use, defaults to simple 'pull'
|
git_pull_args: --ff-only # optional arg use, defaults to simple 'pull'
|
||||||
github_token: ${{ secrets.G_TOKEN }} # optional, for accessing repos that require authentication
|
github_token: ${{ secrets.GITHUB_TOKEN }} # optional, for accessing repos that require authentication
|
||||||
|
|
||||||
# Step 3: Display a message if 'sync' step had new commits (simple test)
|
# Step 3: Display a message if 'sync' step had new commits (simple test)
|
||||||
- name: Check for new commits
|
- name: Check for new commits
|
||||||
|
Loading…
Reference in New Issue
Block a user