Skip to content

auto-suburb

auto-suburb #16664

Workflow file for this run

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: Generate Sitemap
run: |
python code/sitemap.py
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: Updated regions & results
default_author: github_actions
pull: '--rebase --autostash'
- name: Push sitemap
if: success()
uses: peter-evans/repository-dispatch@v3
with:
event-type: static-deploy
- name: Start new workflow
if: success() || failure()
uses: peter-evans/repository-dispatch@v3
with:
event-type: auto-suburb