Skip to content

Commit bde8060

Browse files
committed
update schedule
1 parent 17a2caa commit bde8060

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/actions.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Aggregate Smartraveller Data
22

33
on:
44
schedule:
5-
- cron: '0 */3 * * *'
5+
- cron: '0 */6 * * *'
66
workflow_dispatch: {}
77

88
jobs:
@@ -16,7 +16,7 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

19-
- name: Set up Python 3.10
19+
- name: Set up Python 3.12
2020
uses: actions/setup-python@v2
2121
with:
2222
allow-prereleases: true
@@ -33,4 +33,4 @@ jobs:
3333
- name: Commit aggregated data
3434
uses: stefanzweifel/git-auto-commit-action@v5
3535
with:
36-
commit_message: "Update Smartraveller data"
36+
commit_message: "ci: update Smartraveller data"

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
A simple API for travel advisories published by the Australian DFAT [Smartraveller](https://www.smartraveller.gov.au/).
44

5-
**This is not an official API. Visit the Smartraveller website for the latest information.**
5+
**This is not an official API. Visit the [Smartraveller website](https://www.smartraveller.gov.au) for the latest information.**
66

77
Available at https://smartraveller.api.kevle.xyz/
88

9-
## Locally running
9+
## Running Locally
10+
1011
```
11-
pip install -r requirements.txt
12-
python wsgi.py
12+
pip install pipenv
13+
pipenv install
14+
pipenv run python wsgi.py
1315
```
1416

1517
## Deployment
@@ -47,7 +49,7 @@ https://smartraveller.api.kevle.xyz/advisory?country=es
4749

4850
### [GET /advisories](https://smartraveller.api.kevle.xyz/advisories)
4951

50-
Get all available Smartraveller advisories. This is updated every 3 hours.
52+
Get all available Smartraveller advisories. This is updated every 6 hours.
5153

5254
#### Example Response
5355

@@ -70,7 +72,7 @@ Get all available Smartraveller advisories. This is updated every 3 hours.
7072

7173
### [GET /destinations](https://smartraveller.api.kevle.xyz/destinations)
7274

73-
Get all available Smartraveller destinations. This is updated every 3 hours.
75+
Get all available Smartraveller destinations. This is updated every 6 hours.
7476

7577
#### Example Response
7678

0 commit comments

Comments
 (0)