mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-24 13:59:08 +08:00
40735124ed
This commit makes sure that the theme-preview action only runs when a theme was added or changed.
27 lines
542 B
YAML
27 lines
542 B
YAML
name: Theme preview
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened]
|
|
branches:
|
|
- master
|
|
- theme_preview_script
|
|
paths:
|
|
- "themes/index.js"
|
|
- "scripts/preview-theme.js"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Install & Preview
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: bahmutov/npm-install@v1
|
|
with:
|
|
useLockFile: false
|
|
- run: npm run preview-theme
|
|
env:
|
|
CI: true
|
|
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|