-
Notifications
You must be signed in to change notification settings - Fork 215
49 lines (40 loc) · 1.32 KB
/
mirror.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
45
46
47
48
49
name: Update blocklists mirror (Publish)
on:
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.MIRROR_TOKEN }}
ref: 'main'
- name: Checkout master on landing-github-pages
run: cd ./landing-github-pages && git checkout master && cd ../
- name: Update translations
run: cd ./landing-github-pages && ./sync-translations.sh && cd ../
- name: 'Push translations commit'
uses: EndBug/add-and-commit@v9
with:
cwd: './landing-github-pages'
message: 'sync: translations'
github_token: ${{ secrets.MIRROR_TOKEN }}
pull: 'origin'
push: true
- name: Update mirrors
run: cd ./landing-github-pages/scripts/ && ./mirror.py && cd ../
- name: 'Push mirrors commit'
uses: EndBug/add-and-commit@v9
with:
cwd: './landing-github-pages'
message: 'sync: mirrors'
github_token: ${{ secrets.MIRROR_TOKEN }}
push: true
- name: 'Push submodule to blokada main repo'
uses: EndBug/add-and-commit@v9
with:
cwd: './'
message: 'publish mirrors'
github_token: ${{ secrets.MIRROR_TOKEN }}
push: true