diff --git a/.gitmodules b/.gitmodules index c48991c..dbc21aa 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "base"] path = base - url = https://github.com/dafyddj/workflow-packer-build + url = https://github.com/dafyddj/base-packer-build diff --git a/base b/base index 9af312b..96352d5 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 9af312b0a37edc2bdc7d8542131d178c21e4e7ce +Subproject commit 96352d587fac62d4668161f103a62ad164171ee3 diff --git a/template/.pre-commit-config.yaml b/template/.pre-commit-config.yaml index 0e5ac23..c75a537 100644 --- a/template/.pre-commit-config.yaml +++ b/template/.pre-commit-config.yaml @@ -2,10 +2,20 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.6.0 hooks: -# - id: trailing-whitespace -# - id: end-of-file-fixer - - id: check-yaml + - id: check-added-large-files + - id: check-merge-conflict + args: [--assume-in-merge] + - id: check-yaml exclude: ^kitchen.yml$ - - id: check-added-large-files + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.28.2 + hooks: + - id: check-github-workflows + name: Check GitHub workflows with check-jsonschema + args: ["--verbose"] + - id: check-renovate + name: Check Renovate config with check-jsonschema + additional_dependencies: [json5==0.9.14] + args: ["--verbose"] diff --git a/test/SetBoxName/pre-commit_yaml.tt b/test/SetBoxName/pre-commit_yaml.tt index 0e5ac23..c75a537 100644 --- a/test/SetBoxName/pre-commit_yaml.tt +++ b/test/SetBoxName/pre-commit_yaml.tt @@ -2,10 +2,20 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.6.0 hooks: -# - id: trailing-whitespace -# - id: end-of-file-fixer - - id: check-yaml + - id: check-added-large-files + - id: check-merge-conflict + args: [--assume-in-merge] + - id: check-yaml exclude: ^kitchen.yml$ - - id: check-added-large-files + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.28.2 + hooks: + - id: check-github-workflows + name: Check GitHub workflows with check-jsonschema + args: ["--verbose"] + - id: check-renovate + name: Check Renovate config with check-jsonschema + additional_dependencies: [json5==0.9.14] + args: ["--verbose"]