Skip to content

Commit

Permalink
update action for reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePrior committed Aug 12, 2023
1 parent 13ca46e commit 5bdc4da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:
auto-suburb:
runs-on: ubuntu-latest
steps:
- name: Sleep for 10 seconds
run: sleep 10s
shell: bash

- name: Checkout
uses: actions/checkout@v3

Expand All @@ -28,7 +32,7 @@ jobs:
- name: Run program
run: |
python code/main.py -i -t 30
python code/main.py -i -t 60
- name: Commit changes
uses: EndBug/add-and-commit@v9
Expand All @@ -38,6 +42,7 @@ jobs:
pull: '--rebase --autostash'

- name: Start new workflow
if: success() || failure()
uses: peter-evans/repository-dispatch@v2
with:
event-type: auto-suburb
2 changes: 1 addition & 1 deletion code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
GNAF_PID_TO_LOC: dict[str, str] = {}
MAX_LOC_CACHE_AGE_DAYS = 180

REFRESH_ANNOUNCED_DAYS = 30 # number of days between refreshing announced suburbs
REFRESH_ANNOUNCED_DAYS = 14 # number of days between refreshing announced suburbs


def select_suburb(target_suburb: str, target_state: str) -> Generator[tuple[str, str], None, None]:
Expand Down

0 comments on commit 5bdc4da

Please sign in to comment.