File tree Expand file tree Collapse file tree
.github/actions/rdcp-conformance Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,12 +48,11 @@ runs:
4848 - name : Discovery
4949 shell : bash
5050 run : |
51- npx rdcp-conformance --base-url="${{ inputs.base-url }}" --out="${{ inputs.discovery-out }}" \
52- ${INPUT_INCLUDE:+--include-tags="${{ inputs.include-tags }}"} \
53- ${INPUT_EXCLUDE:+--exclude-tags="${{ inputs.exclude-tags }}"} || \
54- node scripts/rdcp-conformance.mjs --base-url="${{ inputs.base-url }}" --out="${{ inputs.discovery-out }}" \
55- ${INPUT_INCLUDE:+--include-tags="${{ inputs.include-tags }}"} \
56- ${INPUT_EXCLUDE:+--exclude-tags="${{ inputs.exclude-tags }}"}
51+ FLAGS=""
52+ if [ -n "${{ inputs.include-tags }}" ]; then FLAGS="$FLAGS --include-tags=\"${{ inputs.include-tags }}\""; fi
53+ if [ -n "${{ inputs.exclude-tags }}" ]; then FLAGS="$FLAGS --exclude-tags=\"${{ inputs.exclude-tags }}\""; fi
54+ npx rdcp-conformance --base-url="${{ inputs.base-url }}" --out="${{ inputs.discovery-out }}" $FLAGS || \
55+ node scripts/rdcp-conformance.mjs --base-url="${{ inputs.base-url }}" --out="${{ inputs.discovery-out }}" $FLAGS
5756 - name : Run tests (conformance-mode)
5857 shell : bash
5958 run : npm test
You can’t perform that action at this time.
0 commit comments