Skip to content

Github Actions if condition requires "always()" to run but that makes it not cancellable #25789

Discussion options

You must be logged in to vote

@mauriciodou

You want, success is false if any job where skipped

if: "!cancelled()"

My own cheatsheet for job if’s

  <a href="https://github.com/actions/runner/issues/491#issuecomment-926924523" target="_blank" rel="noopener nofollow ugc">github.com/actions/runner</a>

Job-level "if" condition not evaluated correctly if job in "needs" property is skipped

<div class="github-info">
  <div class="date">
    opened <span class="discourse-local-date" data-format="ll" data-date="2020-05-19" data-time="22:07:13" data-timezone="UTC">10:07PM - 19 May 20 UTC</span>
  </div>


  <div class="user">
    <a href="https://github.com/joequincy" target="_blank" rel="noopener nofollow ugc">
      <i…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants