Skip to content

Commit

Permalink
fixing data updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Aug 9, 2024
1 parent 7d08e23 commit 773e80e
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 48 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/reusable-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Reusable Update Workflow

on:
workflow_call:
inputs:
state:
required: true
type: string

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build process
uses: devcontainers/ci@v0.3
env:
ELASTIC_HOST: ${{ secrets.TF_VAR_elastic_host }}
ELASTIC_PASSWORD: ${{ secrets.TF_VAR_elastic_password }}
ELASTIC_USERNAME: ${{ secrets.TF_VAR_elastic_username }}
with:
runCmd: |
npm run gen-install-cmd
chmod +x ./install.sh
./install.sh
COVERED_STATES=${{ inputs.state }} NODE_OPTIONS=--max_old_space_size=8196 addressr-loader
env: |
ELASTIC_PORT=443
ELASTIC_HOST
ELASTIC_USERNAME
ELASTIC_PASSWORD
ELASTIC_PROTOCOL=https
NODE_ENV=production
ADDRESSR_ENABLE_GEO=1
DEBUG=error,api,express:*,swagger-tools*,test,es
12 changes: 12 additions & 0 deletions .github/workflows/update-act.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: ACT
48 changes: 0 additions & 48 deletions .github/workflows/update-addresses.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/update-nsw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: NSW
12 changes: 12 additions & 0 deletions .github/workflows/update-nt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: NT
12 changes: 12 additions & 0 deletions .github/workflows/update-ot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: OT
12 changes: 12 additions & 0 deletions .github/workflows/update-qld.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: QLD
12 changes: 12 additions & 0 deletions .github/workflows/update-sa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: SA
12 changes: 12 additions & 0 deletions .github/workflows/update-tas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: TAS
12 changes: 12 additions & 0 deletions .github/workflows/update-vic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: VIC
12 changes: 12 additions & 0 deletions .github/workflows/update-wa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update Data for OT

on:
schedule:
- cron: '23 01 01 3,6,9,12 *'
workflow_dispatch:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-update.yml
with:
state: WA

0 comments on commit 773e80e

Please sign in to comment.