1
0
mirror of https://github.com/one-among-us/data.git synced 2024-11-23 03:27:38 +08:00
one-among-us-data/.github/workflows/generator.yml

48 lines
1.5 KiB
YAML
Raw Normal View History

2021-11-13 02:56:41 +08:00
# This is a basic workflow to help you get started with Actions
2021-11-13 03:05:05 +08:00
name: Generator
2021-11-13 02:56:41 +08:00
# 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"
2021-11-13 03:05:05 +08:00
- uses: EndBug/add-and-commit@v7
with:
# Determines the way the action fills missing author name and email. Three options are available:
# - github_actor -> UserName <UserName@users.noreply.github.com>
# - user_info -> Your Display Name <your-actual@email.com>
# - github_actions -> github-actions <email associated with the github logo>
# Default: github_actor
default_author: github_actions
# The message for the commit.
# Default: 'Commit from GitHub Actions (name of the workflow)'
message: '[U] Generate json'