forked from futo-org/polycentric
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 822 Bytes
/
main.yml
File metadata and controls
26 lines (24 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Sync Fork
on:
schedule:
- cron: '0 * * * *' # Runs every hour
workflow_dispatch: # Allows you to run it manually
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout target repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sync with Upstream
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote add upstream https://github.com/futo-org/polycentric.git
git fetch upstream
git checkout develop
git merge upstream/develop --no-ff -m "Merge upstream develop" || (echo "Conflict detected, manual intervention required" && exit 1)
git push origin develop