-
-
Notifications
You must be signed in to change notification settings - Fork 107
30 lines (30 loc) · 1.06 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
name: Update data files from smogon database
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
jobs:
Update-data-files:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: master
- name: Run update script
run: |
chmod +x ./scripts/update_all_data.sh
./scripts/update_all_data.sh
chmod -x ./scripts/update_all_data.sh
- name: Create or update pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: JSON data update from smogon
branch: create-pull-request/update-data
delete-branch: true
title: Automatic data update from smogon
body: |
Automated data update by [update-data.yml](https://github.com/hsahovic/poke-env/tree/master/.github/workflows/update-data.yml)
assignees: ${{ github.repository_owner }}
reviewers: ${{ github.repository_owner }}
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>