Skip to content

Commit

Permalink
Merge 72769e0 into c95cc77
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed Oct 22, 2021
2 parents c95cc77 + 72769e0 commit 5e69cf0
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/update-codelists.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 <57559326+codeforIATIbot@users.noreply.github.com>
author: CodeforIATI bot <57559326+codeforIATIbot@users.noreply.github.com>
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

0 comments on commit 5e69cf0

Please sign in to comment.