ant-design/.github/workflows/pr-check-ci.yml
726c6cb78f
ci: fix event trigger (#45364)
* 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 commit c98ebb9a74b86733dba110a7fa0e619294da5941.

* Revert "chore: update"

This reverts commit c4cc117870c76fa64be08f2dc023cbd7fa36bd38.

* Revert "chore: remove redundancy logic"

This reverts commit a49a6586d957977503305b107228509b81de3dff.

* Revert "chore: undo previously changed job name"

This reverts commit 7fa25e6de70b7edcede67ea92370d579cc5fef91.

* Revert "ci: fix CI trigger events"

This reverts commit 3e0a722dd694ab38aefa2280a9006dbd49d865e6.

* Revert "ci: merge preview workflows (#45276)"

This reverts commit 0379ee5b68.

* chore: update

* chore: update

* chore: update

* chore: update download

* chore: update

* chore: fix

* Update preview-start.yml

---------

Co-authored-by: afc163 <afc163@gmail.com>
2023-10-20 18:03:58 +08:00

33 lines
1.2 KiB
YAML

# Used to merge master/feature branches with each other
name: PR Check CI
on:
schedule:
- cron: "*/5 * * * *"
permissions:
contents: read
jobs:
pr-check-ci:
if: github.repository == 'ant-design/ant-design'
permissions:
checks: read # for actions-cool/check-pr-ci to get check reference
contents: write # for actions-cool/check-pr-ci to merge PRs
issues: write # for actions-cool/check-pr-ci to update issues
pull-requests: write # for actions-cool/check-pr-ci to update PRs
runs-on: ubuntu-latest
steps:
- uses: actions-cool/check-pr-ci@v1
with:
filter-label: 'BranchAutoMerge'
filter-creator-authority: 'write'
filter-head-ref: 'master, feature, next, master-merge-feature, feature-merge-master, next-merge-master, next-merge-feature'
filter-support-fork: false
skip-run-names: 'deploy preview, pr-check-ci, upstream workflow summary, suggest-related-links'
conflict-review-body: '😅 This branch has conflicts that must be resolved!'
success-review: true
success-merge: true
merge-method: 'merge'
merge-title: 'chore: auto merge branches (#${number})'