forked from practicalparticipation/iati-datastore
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.34 KB
/
update-codelists.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
37
38
39
40
name: Update codelists
on:
repository_dispatch:
types: [update-codelists]
jobs:
update-codelists:
name: Update codelists
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- uses: actions/cache@v2
name: Cache python dependencies
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update codelists
run: |
iati download-codelists
- name: Create a pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: Codelist update
committer: CodeforIATI bot <[email protected]>
author: CodeforIATI bot <[email protected]>
branch: codelist-update
delete-branch: true
title: Codelist update
body: Codelist update, sent from [this GitHub Action build](https://github.com/codeforIATI/iati-datastore/actions/runs/${{ github.run_id }}).
reviewers: markbrough,andylolz