Replies: 1 comment
-
|
@andreynering would you be willing to merge this feature if I (or someone) implemented it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
taskfor configuring servers, and a common use case that I'm having is this:I have a
Taskfile.yamlfor managingwebhook(https://github.com/adnanh/webhook specifically).webhookis configured with a single JSON file containing an array of webhook definitions.I also have multiple
Taskfile.yamlfor different projects, and each one wants to register its own webhooks, which is done with a different task in each project.To solve this, I make a script that takes all the
.jsonfiles inside a directory and combines them in a single file in/etc/webhook.conf.The problem is, I need a way to tell
taskthat all the "create json file with webhook" tasks need to be run before the "combine all the json files" task without making thewebhooktasks know about every single project explicitly. Right now, I can't set a "reverse dependency", saying that a task should always run before another task if the given task is planned to be executed.Right now, my solution is to manually split the root Taskfile in "phases" to make sure that the "combine all the json files" task is executed last.
This is roughly how it looks now:
And this is how it could look with something like a
before:setting implemented.I've seen the proposal #1409 , but I think it introduces a "before/after arms race", in which you'll eventually need to have tasks running after a task that already has a
run: aftersetting. That's why I'm making this proposal instead.Beta Was this translation helpful? Give feedback.
All reactions