Skip to content

Workflow skips step #21427

Discussion options

You must be logged in to vote
HarshalRathore:
  - id: check
    uses: victoriadrake/link-snitch@master
    with:
      Resursive urls: true
      URL: https://open-horizon.github.io/
if: failure() && steps.check.outcome == 'failure'
  • uses: JasonEtco/create-an-issue@v2.4.0
    env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    with:
    filename: ${{ env.ISSUE_TEMPLATE }}`

The problem is that the if is part of the check step itself. The line after the if starts the next item in the YAML list steps. That never matches because at the time when the runner checks if the check step should run, it doesn’t have an outcome yet, and nothing failed unless there’s an error during checkout. 🙂

If you want the condition to apply …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants