-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 925 Bytes
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Aggregate Smartraveller Data
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch: {}
jobs:
aggregate:
name: Aggregate Smartraveller Destinations and Advisories
runs-on: ubuntu-latest
permissions:
# Give GITHUB_TOKEN write permission to commit and push changes
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
allow-prereleases: true
python-version: 3.12
- name: Install requirements
run: |
pip install pipenv
pipenv install --deploy
- name: Run aggregation script
run: pipenv run python ./smartraveller/aggregate.py
- name: Commit aggregated data
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "ci: update Smartraveller data"