-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2161148
commit c52a50b
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# When `preview-build` start. Leave a message on the PR | ||
# | ||
# 🚨🚨🚨 Important 🚨🚨🚨 | ||
# Never do any `checkout` or `npm install` action! | ||
# `pull_request_target` will enable PR to access the secrets! | ||
|
||
name: Preview Start | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
preview-start: | ||
permissions: | ||
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments | ||
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments | ||
name: start preview info | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: update status comment | ||
uses: actions-cool/maintain-one-comment@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
[![Prepare preview](https://user-images.githubusercontent.com/5378891/72351368-2c979e00-371b-11ea-9652-eb4e825d745e.gif)](https://preview-${{ github.event.workflow_run.id }}-ant-design.surge.sh) | ||
<!-- AUTO_PREVIEW_HOOK --> | ||
body-include: '<!-- AUTO_PREVIEW_HOOK -->' |