1
0
mirror of https://github.com/go-task/task.git synced 2025-12-26 00:31:38 +02:00
Files
task/testdata/checksum/Taskfile.yml

31 lines
619 B
YAML
Raw Permalink Normal View History

version: '3'
2019-08-18 17:37:21 +02:00
tasks:
build:
cmds:
- cp ./source.txt ./generated.txt
sources:
- ./**/glob-with-inexistent-file.txt
- ./*.txt
- exclude: ./ignore_me.txt
- exclude: ./generated.txt
2019-08-18 17:37:21 +02:00
generates:
- ./generated.txt
method: checksum
build-*:
cmds:
- cp ./source.txt ./generated-{{index .MATCH 0}}.txt
sources:
- ./source.txt
generates:
- ./generated-{{index .MATCH 0}}.txt
method: checksum
build-with-status:
cmds:
- cp ./source.txt ./generated.txt
sources:
- ./source.txt
status:
- test -f ./generated.txt