File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -46,22 +46,22 @@ repos:
4646
4747 # Expand YAML anchors in files used by github workflows, because github can't
4848 # do this itself. This lets us use anchors, which avoids code duplication.
49- # - repo: local
50- # hooks:
51- # - id: expand-yaml-anchors
52- # name: Expand YAML anchors
53- # language: golang
54- # additional_dependencies: [github.com/mikefarah/yq/v4@latest]
55- # entry: >
56- # bash -c '
57- # OUT=".github/workflows/integration-tests.yml"
58- # IN="$OUT.in"
59- # echo "# AUTOGENERATED by pre-commit, modify the .in file instead." > "$OUT" &&
60- # echo >> "$OUT"
61- # yq "explode(.)" "$IN" >> "$OUT"
62- # '
63- # files: ^.github/workflows/integration-tests.yml.*
64- # pass_filenames: false
49+ - repo : local
50+ hooks :
51+ - id : expand-yaml-anchors
52+ name : Expand YAML anchors
53+ language : golang
54+ additional_dependencies : [github.com/mikefarah/yq/v4@latest]
55+ entry : >
56+ bash -c '
57+ OUT=".github/workflows/integration-tests.yml"
58+ IN="$OUT.in"
59+ echo "# AUTOGENERATED by pre-commit, modify the .in file instead." > "$OUT" &&
60+ echo >> "$OUT"
61+ yq "explode(.)" "$IN" >> "$OUT"
62+ '
63+ files : ^.github/workflows/integration-tests.yml.*
64+ pass_filenames : false
6565
6666 - repo : https://github.com/PyCQA/bandit
6767 rev : ' 1.7.9'
You can’t perform that action at this time.
0 commit comments