Skip to content

Commit

Permalink
Merge pull request #420 from per1234/update-dependabot-validator
Browse files Browse the repository at this point in the history
Use modern version of validator to validate Dependabot configuration files
  • Loading branch information
per1234 authored Nov 30, 2023
2 parents 0e986a4 + 80c036a commit e9c50c4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,24 +363,22 @@ tasks:
DATA_PATH: ".github/dependabot.yml"
# The asset Dependabot configuration files.
ASSETS_DATA_PATH: "workflow-templates/assets/dependabot/**/dependabot.yml"
PROJECT_FOLDER:
sh: pwd
WORKING_FOLDER:
sh: task utility:mktemp-folder TEMPLATE="dependabot-validate-XXXXXXXXXX"
cmds:
- wget --quiet --output-document="{{.SCHEMA_PATH}}" {{.SCHEMA_URL}}
- |
cd "{{.WORKING_FOLDER}}" # Workaround for https://github.com/npm/cli/issues/3210
npx ajv-cli@{{.SCHEMA_DRAFT_4_AJV_CLI_VERSION}} validate \
npx ajv-cli validate \
--all-errors \
--strict=false \
-s "{{.SCHEMA_PATH}}" \
-d "{{.PROJECT_FOLDER}}/{{.DATA_PATH}}"
-d "{{.DATA_PATH}}"
- |
cd "{{.WORKING_FOLDER}}" # Workaround for https://github.com/npm/cli/issues/3210
npx ajv-cli@{{.SCHEMA_DRAFT_4_AJV_CLI_VERSION}} validate \
npx ajv-cli validate \
--all-errors \
--strict=false \
-s "{{.SCHEMA_PATH}}" \
-d "{{.PROJECT_FOLDER}}/{{.ASSETS_DATA_PATH}}"
-d "{{.ASSETS_DATA_PATH}}"
docs:generate:
desc: Create all generated documentation content
Expand Down

0 comments on commit e9c50c4

Please sign in to comment.