We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb09e2b commit 4f26988Copy full SHA for 4f26988
1 file changed
.github/workflows/main.yml
@@ -0,0 +1,26 @@
1
+name: Sync Fork
2
+
3
+on:
4
+ schedule:
5
+ - cron: '0 * * * *' # Runs every hour
6
+ workflow_dispatch: # Allows you to run it manually
7
8
+jobs:
9
+ sync:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+ steps:
14
+ - name: Checkout target repo
15
+ uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0
18
+ - name: Sync with Upstream
19
+ run: |
20
+ git config user.name "github-actions[bot]"
21
+ git config user.email "github-actions[bot]@users.noreply.github.com"
22
+ git remote add upstream https://github.com/futo-org/polycentric.git
23
+ git fetch upstream
24
+ git checkout --track origin/develop
25
+ git merge upstream/develop --ff-only || (echo "Conflict detected, manual intervention required" && exit 1)
26
+ git push origin develop
0 commit comments