mirror of
https://github.com/go-task/task.git
synced 2024-12-14 10:52:43 +02:00
25 lines
466 B
YAML
25 lines
466 B
YAML
version: '3'
|
|
run: when_changed
|
|
|
|
tasks:
|
|
generate-hash:
|
|
- rm -f hash.txt
|
|
- task: input-content
|
|
vars: { CONTENT: '1' }
|
|
- task: input-content
|
|
vars: { CONTENT: '2' }
|
|
- task: input-content
|
|
vars: { CONTENT: '2' }
|
|
|
|
input-content:
|
|
deps:
|
|
- task: create-output
|
|
vars: { CONTENT: '1' }
|
|
cmds:
|
|
- echo {{.CONTENT}} >> hash.txt
|
|
|
|
create-output:
|
|
run: once
|
|
cmds:
|
|
- echo starting {{.CONTENT}} >> hash.txt
|