Skip to content

Commit 01d49fc

Browse files
committed
Update URL of taskfile schema in "Check Taskfiles" workflow
The "Check Taskfiles" template workflow validates the project's taskfiles against the official JSON schema. The contents of that schema was recently moved from the previous location in the Schema Store to the Task project repository: go-task/task#910 An attempt was made to mitigate the impact of that move by replacing the content in the original schema with an external reference to the new one. However, the schema validator used by the workflow does not automatically follow external references, which caused the workflow to fail: schema /home/runner/work/_temp/taskfile-schema/taskfile.json is invalid error: can't resolve reference https://taskfile.dev/schema.json from id # Although this could be resolved by also downloading the referenced schema, since the original schema intentionally does not contain anything of value, the better fix is to simply use the real schema directly in the workflow.
1 parent 11cbd1e commit 01d49fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-taskfiles.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
id: download-schema
6767
uses: carlosperate/download-file-action@v2
6868
with:
69-
# See: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/taskfile.json
70-
file-url: https://json.schemastore.org/taskfile.json
69+
# Source: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/taskfile.json
70+
file-url: https://taskfile.dev/schema.json
7171
location: ${{ runner.temp }}/taskfile-schema
7272

7373
- name: Install JSON schema validator

0 commit comments

Comments
 (0)