Skip to content

Commit

Permalink
chore: use latest tag to download file in makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
  • Loading branch information
yordis committed Feb 5, 2024
1 parent aa2e435 commit 73faf6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ gen-changelog:
npx auto-changelog --unreleased

run-all:
curl -o ./priv/openapi/spec3.sdk.json https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.sdk.json
@$(eval LATEST_TAG=$(shell curl -s https://api.github.com/repos/stripe/openapi/releases/latest | jq -r '.tag_name'))
@echo "Latest tag: $(LATEST_TAG)"
@echo "Downloading https://raw.githubusercontent.com/stripe/openapi/$(LATEST_TAG)/openapi/spec3.sdk.json to ./priv/openapi/spec3.sdk.json"
@curl -o ./priv/openapi/spec3.sdk.json https://raw.githubusercontent.com/stripe/openapi/$(LATEST_TAG)/openapi/spec3.sdk.json
mix stripe.generate
mix format
SKIP_STRIPE_MOCK_RUN=true mix test

0 comments on commit 73faf6d

Please sign in to comment.