2020-07-26 16:41:30 +08:00
|
|
|
name: Generate Theme Readme
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- "themes/index.js"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: setup node
|
2021-10-13 23:09:13 +08:00
|
|
|
uses: actions/setup-node@v1
|
2020-07-26 16:41:30 +08:00
|
|
|
with:
|
2022-09-24 16:20:54 +08:00
|
|
|
node-version: "16.x"
|
2020-07-26 16:41:30 +08:00
|
|
|
|
|
|
|
- name: npm install, generate readme
|
|
|
|
run: |
|
2020-07-26 17:02:17 +08:00
|
|
|
npm install
|
2020-07-26 16:41:30 +08:00
|
|
|
npm run theme-readme-gen
|
|
|
|
env:
|
|
|
|
CI: true
|
|
|
|
|
|
|
|
- name: Run Script
|
|
|
|
uses: skx/github-action-tester@master
|
|
|
|
with:
|
2020-07-26 17:16:23 +08:00
|
|
|
script: ./scripts/push-theme-readme.sh
|
2020-07-26 16:41:30 +08:00
|
|
|
env:
|
|
|
|
CI: true
|
|
|
|
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|
|
|
|
GH_REPO: ${{ secrets.GH_REPO }}
|