mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-12 13:41:40 +08:00
6b7e91abb6
This commit makes sure that: - The theme-preview action can test multiple themes. - Fails if something goes wrong. - Requests changes if the theme does not adhere to the guidelines. - Approves the PR if the theme adheres to the guidelines.
27 lines
547 B
YAML
27 lines
547 B
YAML
name: Theme preview
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, edited, reopened, synchronize]
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "themes/index.js"
|
|
|
|
jobs:
|
|
previewTheme:
|
|
runs-on: ubuntu-latest
|
|
name: Install & Preview
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
- uses: bahmutov/npm-install@v1
|
|
with:
|
|
useLockFile: false
|
|
- run: npm run preview-theme
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|