Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

GitHub Actions: A Neutral Status In One Action Cancels All Parallel Actions

This behavior seems wrong to me. What we want to do is run code lint when needed using parallel actions. If no files were changed that are appliable to a particular linter then it returns neutral status. We expect the remaining linters to continue as normal. However, they get cancelled automatically. 

 

Here's our main.workflow file:

 

workflow "Housekeeping" {
  on = "push"
  resolves = ["Branch Cleanup"]
}

action "Branch Cleanup" {
  uses = "jessfraz/branch-cleanup-action@master"
  secrets = ["GITHUB_TOKEN"]
}

workflow "Slash Commands" {
  on = "issue_comment"
  resolves = ["/rebase"]
}

action "/rebase" {
  uses = "docker://cirrusactions/rebase:latest"
  secrets = ["GITHUB_TOKEN"]
}

workflow "Code Lint (Syntax)" {
  on = "push"
  resolves = [
    "Lint PHP 5.6",
    "Lint PHP 7.3.0",
    "Lint JavaScript",
    "Check Lint Results",
  ]
}

action "Get Changed Files" {
  uses = "lots0logs/gh-action-get-changed-files@master"
  secrets = ["GITHUB_TOKEN"]
}

action "Lint PHP 5.2" {
  uses = "docker://elegantthemes/gh-action-lint-php:5.2.17"
  needs = ["Get Changed Files"]
}

action "Lint PHP 5.6" {
  uses = "docker://elegantthemes/gh-action-lint-php:5.6.39"
  needs = ["Get Changed Files"]
}

action "Lint PHP 7.3.0" {
  uses = "docker://elegantthemes/gh-action-lint-php:7.3.0"
  needs = ["Get Changed Files"]
}

action "Lint JavaScript" {
  uses = "docker://elegantthemes/gh-action-lint-js:latest"
  needs = ["Get Changed Files"]
}

action "Check Lint Results" {
  uses = "lots0logs/gh-action-conditional-failure@1.0.0"
  needs = ["Lint PHP 5.2"]
  args = "--file-exists **/lint-failed/*"
  env = {
    success_msg = "Success! No syntax errors found."
    fail_msg = "Syntax errors found!"
  }
}
 

 

You can see the failure here: https://github.com/elegantthemes/submodule-builder/actions/workflow-runs/MDEwOkNoZWNrU3VpdGU2NjU0NDc...

1 Reply
Copilot Lvl 3
Message 2 of 2

Re: GitHub Actions: A Neutral Status In One Action Cancels All Parallel Actions

I just discovered the same issue. This seems to have changed recently. Some older workflows did work like expected.

 

Now:

Cancelled.png

 

The same workflow a month ago. I am happy to help debugging.

Skipped.png