mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-30 14:08:14 +08:00
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Generate Theme Readme
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "themes/index.js"
|
|
|
|
jobs:
|
|
generateThemeDoc:
|
|
runs-on: ubuntu-latest
|
|
name: Generate theme doc
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
|
|
# Fix the unsafe repo error which was introduced by the CVE-2022-24765 git patches.
|
|
- name: Fix unsafe repo error
|
|
run: git config --global --add safe.directory ${{ github.workspace }}
|
|
|
|
- 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 }}
|