正如Github 社區上的這篇帖子(和帖子)中所解釋的那樣。
您可以使用此觸發條件實現您想要的:
on:
pull_request:
types: [closed]
然後if condition
在你的工作中使用它來保證它只有在 PR 被合併時才會運行:
jobs:
build:
if: github.event.pull_request.merged == 'true'
steps:
...
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다