github-readme-stats/.github/workflows/preview-theme.yml

34 lines
778 B
YAML
Raw Normal View History

name: Theme preview
on:
2020-08-09 23:39:12 +08:00
pull_request_target:
types: [opened, synchronize, reopened]
branches:
- master
- theme-preview-script
- "themes/index.js"
issue_comment:
types: [edited]
jobs:
2021-11-06 22:47:14 +08:00
comment:
if: contains(github.event.comment.html_url, '/pull/')
runs-on: ubuntu-latest
steps:
- name: say hello
if: contains(github.event.comment.body, 'Automated Theme Preview')
run: |
echo say hello
build:
runs-on: ubuntu-latest
name: Install & Preview
steps:
- uses: actions/checkout@v1
- uses: bahmutov/npm-install@v1
2021-01-10 16:41:21 +08:00
with:
useLockFile: false
- run: npm run preview-theme
env:
CI: true
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}