File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Aggregate Smartraveller Data
2
2
3
3
on :
4
4
schedule :
5
- - cron : ' 0 */3 * * *'
5
+ - cron : ' 0 */6 * * *'
6
6
workflow_dispatch : {}
7
7
8
8
jobs :
16
16
- name : Checkout repository
17
17
uses : actions/checkout@v4
18
18
19
- - name : Set up Python 3.10
19
+ - name : Set up Python 3.12
20
20
uses : actions/setup-python@v2
21
21
with :
22
22
allow-prereleases : true
33
33
- name : Commit aggregated data
34
34
uses : stefanzweifel/git-auto-commit-action@v5
35
35
with :
36
- commit_message : " Update Smartraveller data"
36
+ commit_message : " ci: update Smartraveller data"
Original file line number Diff line number Diff line change 2
2
3
3
A simple API for travel advisories published by the Australian DFAT [ Smartraveller] ( https://www.smartraveller.gov.au/ ) .
4
4
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.**
6
6
7
7
Available at https://smartraveller.api.kevle.xyz/
8
8
9
- ## Locally running
9
+ ## Running Locally
10
+
10
11
```
11
- pip install -r requirements.txt
12
- python wsgi.py
12
+ pip install pipenv
13
+ pipenv install
14
+ pipenv run python wsgi.py
13
15
```
14
16
15
17
## Deployment
@@ -47,7 +49,7 @@ https://smartraveller.api.kevle.xyz/advisory?country=es
47
49
48
50
### [ GET /advisories] ( https://smartraveller.api.kevle.xyz/advisories )
49
51
50
- Get all available Smartraveller advisories. This is updated every 3 hours.
52
+ Get all available Smartraveller advisories. This is updated every 6 hours.
51
53
52
54
#### Example Response
53
55
@@ -70,7 +72,7 @@ Get all available Smartraveller advisories. This is updated every 3 hours.
70
72
71
73
### [ GET /destinations] ( https://smartraveller.api.kevle.xyz/destinations )
72
74
73
- Get all available Smartraveller destinations. This is updated every 3 hours.
75
+ Get all available Smartraveller destinations. This is updated every 6 hours.
74
76
75
77
#### Example Response
76
78
You can’t perform that action at this time.
0 commit comments