forked from KakoozaJerry/evaluation_system
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e084b9
commit 3316c19
Showing
1 changed file
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
name: Sync Fork | ||
name: Sync to Upstream | ||
|
||
on: | ||
schedule: | ||
- cron: '*/30 * * * *' # every 30 minutes | ||
workflow_dispatch: # on button click | ||
- cron: '12 7 * * 1,4' | ||
# scheduled at 07:12 every Monday and Thursday | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sync: | ||
|
||
sync_with_upstream: | ||
runs-on: ubuntu-latest | ||
name: Sync HEAD with upstream latest | ||
|
||
steps: | ||
- uses: tgymnich/fork-sync@v1.3 | ||
with: | ||
owner: kakoozajerry | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
personal_token: ${{ secrets.GH_PERSONAL_TOKEN }} | ||
head: main | ||
base: main | ||
merge_method: merge | ||
pr_title: Fork Sync | ||
auto_approve: true | ||
# Step 1: run a standard checkout action, provided by github | ||
- name: Checkout HEAD | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
|
||
# Step 2: run this sync action - specify the upstream repo, upstream branch to sync with, and target sync branch | ||
- name: Pull upstream changes | ||
id: sync | ||
uses: bdougie/Fork-Sync-With-Upstream-action@fork | ||
with: | ||
upstream_repository: kakoozajerry/evaluation_system | ||
upstream_branch: main | ||
target_branch: main # optional | ||
github_token: ${{ secrets.GITHUB_TOKEN }} # optional, for accessing repos that require authentication |