Skip to content

Commit

Permalink
Create wf-fork-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gr8h authored Dec 12, 2023
1 parent 3405f09 commit 60d9473
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/wf-fork-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
schedule:
# - cron: "0 7 * * 1,4"
# scheduled at 07:00 every Monday and Thursday
- cron: "*/5 * * * *" # every 30 minutes
workflow_dispatch:

jobs:
sync_with_upstream:
runs-on: ubuntu-latest
name: Sync upstream branch with upstream latest

steps:
- name: Checkout upstream
uses: actions/checkout@v2
with:
ref: upstream

- name: Pull upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.1
with:
target_sync_branch: master
# REQUIRED 'target_repo_token' exactly like this!
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
upstream_sync_branch: master
upstream_sync_repo: NethermindEth/nethermind

# Set test_mode true to run tests instead of the true action!!
test_mode: true

- name: Timestamp
run: date

0 comments on commit 60d9473

Please sign in to comment.