2020-08-03 01:17:34 +08:00
|
|
|
name: Theme preview
|
|
|
|
|
|
|
|
on:
|
2020-08-09 23:39:12 +08:00
|
|
|
pull_request_target:
|
2020-08-03 01:17:34 +08:00
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- theme-preview-script
|
|
|
|
- "themes/index.js"
|
2021-11-06 22:35:35 +08:00
|
|
|
issue_comment:
|
|
|
|
types: [edited]
|
2020-08-03 01:17:34 +08:00
|
|
|
|
|
|
|
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
|
2020-08-03 01:17:34 +08:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-01-10 16:36:02 +08:00
|
|
|
name: Install & Preview
|
2020-08-03 01:17:34 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2021-01-10 16:08:11 +08:00
|
|
|
- uses: bahmutov/npm-install@v1
|
2021-01-10 16:41:21 +08:00
|
|
|
with:
|
|
|
|
useLockFile: false
|
2021-01-10 16:08:11 +08:00
|
|
|
- run: npm run preview-theme
|
2020-08-03 01:17:34 +08:00
|
|
|
env:
|
|
|
|
CI: true
|
|
|
|
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|