mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 23:32:54 +00:00
40 lines
809 B
YAML
40 lines
809 B
YAML
name: Generate Theme Readme
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "themes/index.js"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
|
|
- name: npm install, generate readme
|
|
run: |
|
|
npm ci
|
|
npm run theme-readme-gen
|
|
env:
|
|
CI: true
|
|
|
|
- name: Run Script
|
|
uses: skx/github-action-tester@master
|
|
with:
|
|
script: ./scripts/push-theme-readme.sh
|
|
env:
|
|
CI: true
|
|
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|
|
GH_REPO: ${{ secrets.GH_REPO }}
|