Skip to content

Commit

Permalink
new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KakoozaJerry committed Dec 4, 2021
1 parent 1e084b9 commit 3316c19
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/sync.yml
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

0 comments on commit 3316c19

Please sign in to comment.