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

How can I stop the execution of the next blocks? #81

Open
juanpabloaj opened this issue Dec 17, 2019 · 1 comment
Open

How can I stop the execution of the next blocks? #81

juanpabloaj opened this issue Dec 17, 2019 · 1 comment

Comments

@juanpabloaj
Copy link

The readme contains this line

If multiple blocks are triggered by the same set of changes, they too run in order, from top to bottom.

If I have a sequence of blocks

**/*.txt {
  prep: echo "block 1"
}

**/*.txt {
  prep: echo "block 2"
}

May I do something to stop the execution of block 2 if something fails in block 1?

Thanks.

@juanpabloaj juanpabloaj changed the title how can I stop the execution of the next blocks? How can I stop the execution of the next blocks? Dec 17, 2019
@jesselang
Copy link
Contributor

I don't believe so. I believe you could instead use multiple prep directives in a single block to achieve the desired outcome.

**/*.txt {
  prep: echo "prep 1"
  prep: echo "prep 2"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants