Skip to content

Cancelled Github actions fails PR checks #26127

Answered by NiklasMerz
Pustelto asked this question in Actions
Discussion options

You must be logged in to vote

I played around a lot and found out this works a lot more like I expected if you place the filter as a “need” for the resolving action.

I modified the example workflow:

workflow "Deploy to Firebase" {
  on = "push"
  resolves = ["Deploy"]
}

action "On master branch" {
uses = "actions/bin/filter@master"
args = "branch master"
}

action "Build" {
uses = "./.github/gatsby-build"
}

action "Deploy" {
needs = ["Build", "On master branch"]
uses = "webscopeio/firebase-deploy-github-action@master"
secrets = ["FIREBASE_AUTH_TOKEN"]
args = "--only hosting"
}

Now the PR checks are green and every action gets the status neutral.

@mcolyerI this like it should be done? Maybe some notes in doc would help.

Replies: 17 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
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
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
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants