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.
2 parents d9abb85 + c956034 commit c7d7189Copy full SHA for c7d7189
.github/workflows/sync.yaml renamed to .github/workflows/sync-develop.yaml
.github/workflows/sync-main.yaml
@@ -0,0 +1,31 @@
1
+name: Synchronize to forked repo
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+jobs:
7
+ sync:
8
+ name: Sync forked repo
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - name: Checkout main
13
+ uses: actions/checkout@v4
14
+ with:
15
+ token: ${{ secrets.AUTO_ACTIONS }}
16
+ fetch-depth: 0
17
+ ref: main
18
19
+ - name: Add remote-url
20
+ run: |
21
+ git remote add forked-repo https://cskime:${{ secrets.AUTO_ACTIONS }}@github.com/cskime/rolling
22
+ git config user.name cskime
23
+ git config user.email ${{ secrets.EMAIL }}
24
25
+ - name: Push changes to forked-repo
26
27
+ git push -f forked-repo main
28
29
+ - name: Clean up
30
31
+ git remote remove forked-repo
0 commit comments