mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
726c6cb78f
* ci: fix CI trigger events ref: https://nathandavison.com/blog/github-actions-and-the-threat-of-malicious-pull-requests * chore: undo previously changed job name * chore: remove redundancy logic * chore: update * chore: revert #45276 * Revert "chore: revert #45276" This reverts commitc98ebb9a74
. * Revert "chore: update" This reverts commitc4cc117870
. * Revert "chore: remove redundancy logic" This reverts commita49a6586d9
. * Revert "chore: undo previously changed job name" This reverts commit7fa25e6de7
. * Revert "ci: fix CI trigger events" This reverts commit3e0a722dd6
. * Revert "ci: merge preview workflows (#45276)" This reverts commit0379ee5b68
. * chore: update * chore: update * chore: update * chore: update download * chore: update * chore: fix * Update preview-start.yml --------- Co-authored-by: afc163 <afc163@gmail.com>
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
# 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 -->'
|