ci: refactor pr preview alert (#4781)

This commit is contained in:
三咲智子
2021-12-11 00:27:29 +08:00
committed by GitHub
parent 72d264de03
commit 21d41aed87
2 changed files with 41 additions and 17 deletions

16
.github/workflows/preview-start.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Preview Start
on: pull_request_target
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: create
uses: actions-cool/maintain-one-comment@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
<img width="400" src="https://user-images.githubusercontent.com/17680888/145600226-14f9cb31-33b8-4757-b2c0-affdb7499089.png">
<!-- ELEMENT_PLUS_PREVIEW -->
body-include: '<!-- ELEMENT_PLUS_PREVIEW -->'