Update data files from smogon/pokemon-showdown #855
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update data files from smogon/pokemon-showdown | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
Update-data-files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: master | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install Requirements | |
run: | | |
python -m pip install requests | |
- name: Run update script pokedex | |
run: | | |
python ./data/scripts/update_pokedex.py | |
- name: Overwrite pokedex.json | |
run: | | |
mv ./pokedex_new.json ./data/pokedex.json | |
- name: Run update script moves | |
run: | | |
python ./data/scripts/update_moves.py | |
- name: Overwrite moves.json | |
run: | | |
mv ./data/new_moves.json ./data/moves.json | |
- name: Create or update pull request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
commit-message: Data update from smogon/pokemon-showdown | |
branch: create-pull-request/update-data | |
delete-branch: true | |
title: Automatic data update from smogon/pokemon-showdown | |
body: | | |
Automated data update | |
assignees: ${{ github.repository_owner }} | |
reviewers: ${{ github.repository_owner }} | |
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |