github-action-required-labels icon indicating copy to clipboard operation
github-action-required-labels copied to clipboard

Cancel instead of Fail

Open AleksaRistic216 opened this issue 10 months ago • 0 comments

I have flow where developer creates PR from some-branch > develop and upon create/update/change anything on that PR, I run pipeline which runs automated tests.

Now, since preparing PR is process on its own, and trigger pipeline on update would trigger multiple times (while user review/update code he just created PR with), I wanted to run tests only if test-label was specified.

To achieve this, I used this action and it works like charm, meaning once developer creates PR, if label test-label is not present, this action will prevent tests from running, however it Fails pipeline (red circle with email notification) and I would like to Cancel it. Is there a way to implement Cancel type for situations like these?

AleksaRistic216 avatar Mar 08 '25 00:03 AleksaRistic216