【发布时间】:2021-11-28 18:55:15
【问题描述】:
如何使用 GitHub Actions 执行 if github.event.action in ['foo', 'bar']?我想限制https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#release 的一些操作,可能值的列表很长。
使用|| 会使整个构造变得庞大,尤其是当您已经需要将它与其他条件结合起来时。
【问题讨论】:
-
docs.github.com/en/free-pro-team@latest/actions/reference/…?正如您链接的那些文档中所述,您可以在这种特定情况下使用
on: release: types: [...]。
标签: github-actions