-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 1.34 KB
/
sync.yaml
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
name: 'Synchronize bridge-style'
on:
repository_dispatch:
types:
- bridge-style_updated
jobs:
sync:
runs-on:
ubuntu-20.04
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
token: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
submodules: recursive
- name: Update git submodules
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Build Docker image
run: docker build -t lyrx2sld .
- name: Run
run: docker run -d -p 80:80 lyrx2sld
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Python tests
run: pytest tests/tests.py -v
- name: Commit update
run: |
git config --global user.name 'c2c-bot-gis-ci'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"