Skip to content

Commit 22f1e2d

Browse files
committed
eli-225 amending yq command as github actions uses the python version
1 parent 7d1a941 commit 22f1e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ construct-spec: guard-APIM_ENV
128128
npx redocly bundle specification/eligibility-signposting-api.yaml --remove-unused-components --keep-url-references --ext yaml \
129129
> build/specification/$(APIM_ENV)/eligibility-signposting-api.yaml
130130
ifeq ($(APIM_ENV),sandbox)
131-
yq -y 'del(.components.securitySchemes) | select(.components.securitySchemes == {} or .components.securitySchemes == null)' -i build/specification/sandbox/eligibility-signposting-api.yaml
131+
yq -y 'del(.components.securitySchemes)' build/specification/sandbox/eligibility-signposting-api.yaml > build/specification/sandbox/eligibility-signposting-api.yaml.tmp && mv build/specification/sandbox/eligibility-signposting-api.yaml.tmp build/specification/sandbox/eligibility-signposting-api.yaml
132132
endif
133133

134134
SPEC_DIR := $(CURDIR)/specification

0 commit comments

Comments
 (0)