Skip to content

Commit 1cf52a6

Browse files
authored
Merge pull request #158 from per1234/avoid-redundant-task-calls
Configure task dependencies to avoid redundant execution
2 parents 8b9712d + 1ad4e40 commit 1cf52a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Taskfile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ tasks:
9595
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
9696
general:cache-dep-licenses:
9797
desc: Cache dependency license metadata
98+
run: when_changed
9899
deps:
99100
- task: general:prepare-deps
100101
cmds:
@@ -147,6 +148,7 @@ tasks:
147148
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-dependencies-task/Taskfile.yml
148149
general:prepare-deps:
149150
desc: Prepare project dependencies for license check
151+
run: when_changed
150152
# No preparation is needed for Go module-based projects.
151153

152154
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
@@ -253,6 +255,7 @@ tasks:
253255
PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
254256
dir: |
255257
"{{default .DEFAULT_NPM_PROJECT_PATH .PROJECT_PATH}}"
258+
run: when_changed
256259
cmds:
257260
- npm install
258261

@@ -374,6 +377,7 @@ tasks:
374377
Install dependencies managed by Poetry.
375378
Environment variable parameters:
376379
POETRY_GROUPS: Poetry dependency groups to install (default: install all dependencies).
380+
run: when_changed
377381
deps:
378382
- task: poetry:install
379383
cmds:

0 commit comments

Comments
 (0)