Skip to content

Commit

Permalink
Make branch name configurable in update-openapi-spec (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
jar-stripe authored Oct 21, 2024
1 parent db7b679 commit ed226f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
GIT_COMMITSHA = $(shell git rev-parse HEAD)
IMAGE_NAME = "stripe/stripe-mock"
OPENAPI_BRANCH ?= master

all: test vet lint check-gofmt build

Expand Down Expand Up @@ -30,6 +31,6 @@ docker-run:
update-openapi-spec:
rm -f ./embedded/openapi/spec3.json
rm -f ./embedded/openapi/fixtures3.json
wget https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json -P ./embedded/openapi
wget https://raw.githubusercontent.com/stripe/openapi/master/openapi/fixtures3.json -P ./embedded/openapi
wget https://raw.githubusercontent.com/stripe/openapi/$(OPENAPI_BRANCH)/openapi/spec3.json -P ./embedded/openapi
wget https://raw.githubusercontent.com/stripe/openapi/$(OPENAPI_BRANCH)/openapi/fixtures3.json -P ./embedded/openapi
.PHONY: update-openapi-spec

0 comments on commit ed226f0

Please sign in to comment.