Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support named, conditional tasks #229

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jul 13, 2020

  1. Support if on tasks.

    Just like on a link action, the value is executed in the shell. If
    it has a non-zero exit code (failure), the whole task is skipped.
    This allows tasks to group actions that only apply in certain
    conditions (e.g. on certain OSes or in certain configurations),
    and allows all actions (not just link) to be conditional.
    davesteinberg committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    633ae55 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2020

  1. Support named, conditional tasks.

    A new property called task can be used to assign a name. If it is
    specified, then the task's actions must be nested under an actions
    property, and an if property can be used to make it conditional.
    Just like on a link action, the value is executed in the shell. If
    it has a non-zero exit code (failure), the whole task is skipped.
    This allows tasks to group actions that only apply in certain
    conditions (e.g. on certain OSes or in certain configurations),
    and allows all actions (not just link) to be conditional.
    
    If there is no task property, then the task behaves exactly as
    it did previously.
    davesteinberg committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    0098c52 View commit details
    Browse the repository at this point in the history