Skip to content

GitHub Actions: Evaluate to replace always() by '!cancelled()' #4673

@mfranzke

Description

@mfranzke

Currently we're using if: always() as a condition at some places in our GitHub workflows. Probably if: '!cancelled()' would work better for most contexts as it would take into account whether the pipeline run has been cancelled in the meantime instead of always continue running it anyhow.

Additionally, as pointed out below, putting always() will cause the function to run even if the build is canceled. If you don't want the function to run when you manually cancel a job, you can instead put:

source: https://stackoverflow.com/questions/58858429/how-to-run-a-github-actions-step-even-if-the-previous-step-fails-while-still-f

Further information:

We even already had our first successful fix: #4672

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions