diff --git a/.github/workflows/update-codelists.yml b/.github/workflows/update-codelists.yml index cbe75670..afe74b34 100644 --- a/.github/workflows/update-codelists.yml +++ b/.github/workflows/update-codelists.yml @@ -1,5 +1,6 @@ name: Update codelists on: + workflow_dispatch: repository_dispatch: types: [update-codelists] jobs: @@ -7,11 +8,12 @@ jobs: name: Update codelists runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.7 - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - name: Set up Python 3.8 + uses: actions/setup-python@v6 with: - python-version: 3.7 + python-version: 3.8 + cache: pip - name: Install python dependencies run: | python -m pip install --upgrade pip @@ -20,7 +22,7 @@ jobs: run: | iati download-codelists - name: Create a pull request - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v7 with: token: ${{ secrets.GH_TOKEN }} commit-message: Codelist update