我正在尝试使用强制标签操作来强制标记PR。
name: Enforce PR label
on:
pull_request:
types: [labeled, unlabeled, opened, edited]
jobs:
enforce-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/enforce-label-action@master
with:
REQUIRED_LABELS_ANY: "bug,enhancement,feature"
问题在于每次标记PR时,都会创建一个新的检查运行,并且旧的检查运行仍然具有失败状态,这会导致检查套件显示:
Some checks were not successful
。是否有可能让
github-actions
在触发具有相同名称的工作流检查时放弃旧的检查运行?
types: [labeled, unlabeled, opened, edited]
并只使用on: pull_request
吗? - peterevans