Skip to content

Commit 6426c32

Browse files
committed
test-tar: update for new spec location
1 parent 45d8dc2 commit 6426c32

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/test-tar.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ jobs:
3636
run: npm install $(grep -m1 prism-cli scripts/mock | awk '{print $3}' | sed s/--package=//) --min-release-age=7
3737
working-directory: ${{ env.CHECKOUT_DIR }}
3838

39-
# The spec is under a BSD license see https://github.com/cloudflare/api-schemas
40-
# upstream fetches this at test time in scripts/mock
41-
- name: fetch cloudflare api spec
42-
run: wget $(yq -r '.openapi_spec_url' .stats.yml) -O cloudflare-spec.yml
39+
- name: decode cloudflare api spec
40+
run: source <(grep EMBEDDED_SPEC= scripts/mock) && echo ${EMBEDDED_SPEC} | base64 --decode | gunzip -c > cloudflare-spec.yml
4341
working-directory: ${{ env.CHECKOUT_DIR }}
4442

4543
- name: Create Archive

0 commit comments

Comments
 (0)