-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (40 loc) · 1.15 KB
/
auto.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
name: Suburb Automatic
on:
workflow_dispatch:
repository_dispatch:
types: [auto-suburb]
jobs:
auto-suburb:
runs-on: ubuntu-latest
steps:
- name: Sleep for 10 seconds
run: sleep 10s
shell: bash
- name: Checkout
uses: actions/checkout@v4
- name: Docker
run: |
docker pull lukeprior/nbn-upgrade-map-db:latest
docker run -d --publish=5433:5432 lukeprior/nbn-upgrade-map-db:latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r code/requirements.txt
- name: Run program
run: |
python code/main.py -i -t 60
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: Updated regions & results
default_author: github_actions
pull: '--rebase --autostash'
- name: Start new workflow
if: success() || failure()
uses: peter-evans/repository-dispatch@v3
with:
event-type: auto-suburb