mirror of
https://github.com/one-among-us/data.git
synced 2024-11-22 19:24:51 +08:00
Merge branch 'main' of https://github.com/hykilpikonna/our-data
This commit is contained in:
commit
a6d8e7d531
40
.github/workflows/generator.yml
vendored
Normal file
40
.github/workflows/generator.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the main branch
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
build:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.9"
|
||||||
|
|
||||||
|
- name: "Install dependencies"
|
||||||
|
run: |
|
||||||
|
set -xe
|
||||||
|
python -VV
|
||||||
|
python -m pip install json5
|
||||||
|
|
||||||
|
- name: "Run generator"
|
||||||
|
run: "python generator.py"
|
||||||
|
|
||||||
|
- name: save updated files
|
||||||
|
run: |
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git diff-index --quiet HEAD || (git commit -a -m '[U] Regenerate generated files' && git push)
|
Loading…
Reference in New Issue
Block a user