38 lines
932 B
YAML
38 lines
932 B
YAML
|
name: Readme Generate
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- '*'
|
||
|
- '*/*'
|
||
|
- '**'
|
||
|
- '!master'
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- '*'
|
||
|
- '*/*'
|
||
|
- '**'
|
||
|
- '!master'
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
readme-gen:
|
||
|
runs-on: ubuntu-latest
|
||
|
# if: github.repository_owner == 'Anduin2017'
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-node@v2
|
||
|
with:
|
||
|
node-version: "16"
|
||
|
cache: "npm"
|
||
|
- run: npm install
|
||
|
- run: node ./.github/readme-gen.js
|
||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||
|
with:
|
||
|
commit_message: "[ci skip] Automatic generate readme"
|
||
|
branch: "master"
|
||
|
file_pattern: ":/*.md"
|
||
|
commit_user_name: github-actions[bot]
|
||
|
commit_user_email: github-actions[bot]@users.noreply.github.com
|
||
|
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|