Skip to content

Commit

Permalink
Add global checksum file variable for docs-venv task.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Nov 25, 2024
1 parent 1aa8373 commit 808b4f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ vars:
G_DOCS_VENV_DIR: "{{.G_BUILD_DIR}}/docs-venv"
G_NODE_DEPS_DIR: "{{.G_BUILD_DIR}}/docs-node"

# Target checksum files
G_DOCS_VENV_CHECKSUM_FILE: "{{.G_BUILD_DIR}}/docs#docs-venv.md5"

tasks:
clean:
cmds:
Expand Down Expand Up @@ -52,7 +55,7 @@ tasks:
DATA_DIR: "{{.OUTPUT_DIR}}"
OUTPUT_FILE: "{{.CHECKSUM_FILE}}"
sources:
- "{{.G_BUILD_DIR}}/docs-venv.md5"
- "{{.G_DOCS_VENV_CHECKSUM_FILE}}"
- "{{.ROOT_DIR}}/taskfile.yaml"
- "{{.TASKFILE}}"
- "conf/**/*"
Expand All @@ -62,7 +65,7 @@ tasks:
docs-venv:
internal: true
vars:
CHECKSUM_FILE: "{{.G_BUILD_DIR}}/{{.TASK | replace \":\" \"#\"}}.md5"
CHECKSUM_FILE: "{{.G_DOCS_VENV_CHECKSUM_FILE}}"
OUTPUT_DIR: "{{.G_DOCS_VENV_DIR}}"
REQUIREMENTS_FILE: "docs/requirements.txt"
deps:
Expand Down

0 comments on commit 808b4f8

Please sign in to comment.