generated from shuding/nextra-docs-template
-
-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (38 loc) · 1.28 KB
/
sync-next.yml
File metadata and controls
43 lines (38 loc) · 1.28 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Sync next with main
permissions:
contents: write
on:
push:
branches:
- main
workflow_dispatch:
jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }}
ref: next
- name: Install SSH signing key
run: |
mkdir -p ${{ runner.temp }}
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
chmod 0700 ${{ runner.temp }}/signing_key
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Set up Git config
run: |
git config user.name "Raboneko"
git config user.email "raboneko@fyralabs.com"
git config gpg.format "ssh"
git config user.signingkey "${{ runner.temp }}/signing_key"
git config --global merge.ours.driver true
git config --global commit.gpgsign true
- name: Merge main into next
env:
GITHUB_TOKEN: ${{ secrets.MERGE_TOKEN }}
run: |
git fetch origin main
git merge --no-edit origin/main
git push origin next