对github动作工作流进行独特的检查运行 [英] Have a unique check-run for github actions workflow

查看:287
本文介绍了对github动作工作流进行独特的检查运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 enforce-label-action 强制实施标签PR.

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"

问题在于,每次给PR加上标签时,都会创建一个新的检查运行,而旧的仍处于失败状态,从而导致检查套件显示:Some checks were not successful.

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.

当触发具有相同名称的工作流检查时,github-actions是否可以放弃旧的检查运行?

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

推荐答案

此问题现已修复,这是GitHub端的错误.

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

这篇关于对github动作工作流进行独特的检查运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆