Skip to content

Commit d7d789d

Browse files
committed
added OPENAPI_BRANCH parameter to update-openapi-spec makefile step, to let us specify a feature branch to update from (for testing)
1 parent 7d6f98f commit d7d789d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
GIT_COMMITSHA = $(shell git rev-parse HEAD)
22
IMAGE_NAME = "stripe/stripe-mock"
3+
OPENAPI_BRANCH ?= master
34

45
all: test vet lint check-gofmt build
56

@@ -30,6 +31,6 @@ docker-run:
3031
update-openapi-spec:
3132
rm -f ./embedded/openapi/spec3.json
3233
rm -f ./embedded/openapi/fixtures3.json
33-
wget https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json -P ./embedded/openapi
34-
wget https://raw.githubusercontent.com/stripe/openapi/master/openapi/fixtures3.json -P ./embedded/openapi
34+
wget https://raw.githubusercontent.com/stripe/openapi/$(OPENAPI_BRANCH)/openapi/spec3.json -P ./embedded/openapi
35+
wget https://raw.githubusercontent.com/stripe/openapi/$(OPENAPI_BRANCH)/openapi/fixtures3.json -P ./embedded/openapi
3536
.PHONY: update-openapi-spec

0 commit comments

Comments
 (0)