-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark workflow run as neutral or success when skipping #227
Comments
To answer my own question: on:
pull_request:
jobs:
prepare:
runs-on: ubuntu-20.04
continue-on-error: true
outputs:
sha7: ${{ steps.prepare.outputs.sha7 }}
steps:
- id: check-label
uses: agilepathway/label-checker@v1.0.90
continue-on-error: true
with:
one_of: cicd
repo_token: ${{ secrets.GITHUB_TOKEN }}
- if: steps.check-label.outcome == 'success'
run: |
echo "::set-output name=sha7::${GITHUB_SHA:0:7}"
build:
if: needs.prepare.outputs.sha7
runs-on: ubuntu-20.04
needs: prepare
steps:
- uses: actions/checkout@v2
# ... this marks the PR check as |
Well, I should have tested it more extensively first. This does not work when the PR is assigned the
From the looks of it I would say that even though I only passed one option ( |
Hi @riker09, sorry for delay in replying, I need to tweak my GitHub notifications 😧 |
Hey @riker09, was this issue also fixed by actions/toolkit#230 (which was the fix for actions/toolkit#228)? Thanks v much |
Well, yes, in a certain way. The error I originally encountered in this issue here was fixed. However, what I actually would like to achieve, is automatically skip all remaining jobs/steps without marking the workflow as When GitHub decides to have other step/action results besided |
I was also looking for this feature.
In this way, the user of the action can control the way the workflow will end: |
@johnboyes is there any chance this feature can be added? |
Hi @pro100svitlo, thanks for suggesting this - I'll take a look into it when I have time over the next week or two and get back to you. One thing I'm keen to establish if this is something which GitHub themselves intend to provide at some stage (and if so, when). |
I want to run a workflow on
pull_request
trigger when a certain label is assigned to the PR. I use this action to check and the workflow is cancelled when the label is not present, so this action right here works as intended.However, the workflow run is marked as
failed
in my GitHub UI, when in reality it should not have run at all. Is there a way to achive this behaviour? Judging from the discussion at actions/runner#2347 this is something that only the GitHub team could solve.I've read in a blog post from the official GitHub Actions Blog that GitHub will skip any
push
orpull_request
events that have[skip ci]
in their commit messages. But what I really want is the other way around.The text was updated successfully, but these errors were encountered: