Skip to content

Commit 3601b0a

Browse files
authored
Merge pull request #944 from per1234/task-run
Configure task dependencies to avoid redundant execution
2 parents 46e1cd4 + b6513b2 commit 3601b0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Taskfile.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ tasks:
179179
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/deploy-cobra-mkdocs-versioned-poetry/Taskfile.yml
180180
docs:generate:
181181
desc: Create all generated documentation content
182+
run: when_changed
182183
deps:
183184
- task: go:cli-docs
184185
- task: go:rule-docs
@@ -495,6 +496,7 @@ tasks:
495496
Install dependencies managed by npm.
496497
Environment variable parameters:
497498
- PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
499+
run: when_changed
498500
dir: |
499501
"{{default .DEFAULT_NPM_PROJECT_PATH .PROJECT_PATH}}"
500502
cmds:

0 commit comments

Comments
 (0)