我有以下觸發器
on:
pull_request:
types:
- opened
branches:
- 'foobranch'
issue_comment:
types:
- created
打開 PR 定位foobranch時,作業流不會運行。
是因為作業流檔案不存在于默認分支之外的任何其他分支上嗎?( master) ?
uj5u.com熱心網友回復:
是的,GitHub 使用相關拉取請求的來源,因此您很可能需要重新設定分支或將作業流挑選到您的拉取請求分支。
GitHub 檔案在這里:
GitHub 在存盤庫中的 .github/workflows 目錄中搜索作業流檔案,這些檔案存在于事件的關聯提交 SHA 或 Git 參考中。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/526669.html
