-
-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (33 loc) · 1012 Bytes
/
main.yml
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
name: CI
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
sync:
name: sync
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: "Set up git access"
env:
WIKI_SSH: ${{ secrets.WIKI_SSH }}
WIKI_SSH_PUB: ${{ secrets.WIKI_SSH_PUB }}
run: |
umask u=rwx,g=,o=
mkdir -p ~/.ssh/
echo "${WIKI_SSH}" | base64 -d > ~/.ssh/multimc_wiki_sync
echo "${WIKI_SSH_PUB}" | base64 -d > ~/.ssh/multimc_wiki_sync.pub
git config core.sshCommand 'ssh -i ~/.ssh/multimc_wiki_sync'
git config user.name "Sync"
git config user.email "[email protected]"
- name: "Add and fetch upstream"
run: |
git remote add upstream [email protected]:MultiMC/Launcher.wiki.git
echo "Fetching upstream"
git fetch upstream
- name: "Sync"
run: |
git push upstream HEAD:master --force