是的,这样就可以了。或者,您也可以手动编写这两个作业,而无需使用矩阵:
name: Discourse Plugin
on:
push:
branches:
- main
pull_request:
jobs:
ci:
uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1
ci-stable:
uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1
with:
core_ref: stable
值得注意的是:这些作业不会检查 .discourse-compatiblity。因此,这只适用于不使用该文件且需要同时兼容 main 和 stable 的插件。
对于 CDCK 的所有公共主题/插件,我们会在每次稳定发布时向 discourse-compatibility 添加一个条目以“冻结”它们。这样,我们在开发它们时就不必担心稳定兼容性问题。