Skip to content

Commit a962a84

Browse files
Ensure we pass url ignore and other parameters, silently discarding now
1 parent 6cc24ca commit a962a84

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

da_build/action.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,21 @@ runs:
4545
run: |
4646
# necessary because dayamlchecker.check_questions_urls isn't a binary.
4747
source $(uv tool dir)/dayamlchecker/bin/activate
48-
find . -name "*.yml" -path "*/questions/*" -print0 | xargs -0 python -m dayamlchecker
48+
49+
args=()
50+
if [ "${{ inputs.skip-url-check }}" = "true" ]; then
51+
args+=(--no-url-check)
52+
fi
53+
54+
if [ "${{ inputs.skip-templates }}" = "true" ]; then
55+
args+=(--url-check-skip-templates)
56+
fi
57+
58+
if [ -n "${{ inputs.ignore-urls }}" ]; then
59+
args+=(--url-check-ignore-urls "${{ inputs.ignore-urls }}")
60+
fi
61+
62+
find . -name "*.yml" -path "*/questions/*" -print0 | xargs -0 python -m dayamlchecker "${args[@]}"
4963
shell: bash
5064

5165
- name: Check URLs in question/template files

0 commit comments

Comments
 (0)