-
Notifications
You must be signed in to change notification settings - Fork 53
44 lines (37 loc) · 1.02 KB
/
sync.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
40
41
42
43
44
name: sync
on:
schedule:
- cron: '30 1 * * *' # Run every day at 01:30
workflow_dispatch:
permissions:
contents: write
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: mirror
- run: sudo apt-get install brz
- name: Set up git config
run: |
git config --global user.name 'marvim'
git config --global user.email '[email protected]'
- run: git pull bzr::http://bazaar.leonerd.org.uk/c/libvterm --tags --rebase
- run: |
git push --force-with-lease
git push --tags
nvim:
runs-on: ubuntu-latest
needs: mirror
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up git config
run: |
git config --global user.name 'marvim'
git config --global user.email '[email protected]'
- run: git merge origin/mirror -m "Merge mirror"
- run: git push