We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c492b46 commit 4f4cd18Copy full SHA for 4f4cd18
1 file changed
.github/workflows/automerge.yml
@@ -0,0 +1,30 @@
1
+name: 'Auto Merge GH-Pages'
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ merge-main-to-gh-pages:
10
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0 # Full clone necessary for proper merge
18
19
+ - name: Set git config
20
+ run: |
21
+ git config --local user.email "actions@github.com"
22
+ git config --local user.name "Github Actions"
23
24
+ - name: Merge main into gh-pages
25
26
+ git fetch --unshallow
27
+ git checkout gh-pages
28
+ git pull
29
+ git merge --no-ff main -m "Automatically merge main into gh-pages"
30
+ git push
0 commit comments