-
Notifications
You must be signed in to change notification settings - Fork 181
44 lines (44 loc) · 1.42 KB
/
update-data.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
41
42
43
44
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>