45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
|
name: generate_template
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
paths:
|
||
|
- tool/generator/**
|
||
|
- app/**
|
||
|
branches:
|
||
|
- main
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: dart-lang/setup-dart@v1
|
||
|
|
||
|
- name: Install Dependencies
|
||
|
working-directory: tool/generator
|
||
|
run: dart pub get
|
||
|
|
||
|
- name: Generate Template
|
||
|
run: dart ./tool/generator/main.dart
|
||
|
|
||
|
- name: Config Git User
|
||
|
run: |
|
||
|
git config user.name VGV Bot
|
||
|
git config user.email vgvbot@users.noreply.github.com
|
||
|
|
||
|
- name: Create Pull Request
|
||
|
uses: peter-evans/create-pull-request@v3.6.0
|
||
|
with:
|
||
|
base: main
|
||
|
branch: chore/generate-template
|
||
|
commit-message: "chore: generate template"
|
||
|
title: "chore: generate template"
|
||
|
body: Please squash and merge me!
|
||
|
labels: bot
|
||
|
author: VGV Bot <vgvbot@users.noreply.github.com>
|
||
|
assignees: vgvbot
|
||
|
reviewers: felangel
|
||
|
committer: VGV Bot <vgvbot@users.noreply.github.com>
|