Have a unique check-run for github actions workflow

牧云@^-^@ 提交于 2020-05-26 12:26:33

问题


I'm trying to enforce labelling PR's using enforce-label-action.

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"

The problem is that each time PR is labeled, a new check-run getting created and the old one's still having a failing status which cause the check-suite to show: Some checks were not successful.

Is it possible for github-actions to discard the old check-runs when a workflow check with the same name is getting triggered?


回答1:


This is now fixed, it was a bug on GitHubs end.



来源:https://stackoverflow.com/questions/58026218/have-a-unique-check-run-for-github-actions-workflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!