Skip to content

Commit

Permalink
Merge pull request #23 from Clever/INFRANG-6510
Browse files Browse the repository at this point in the history
Update sfncli.mk
  • Loading branch information
ribeirophilippe authored Oct 8, 2024
2 parents 1cb5278 + 5b9e9aa commit 15014ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sfncli.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ SFNCLI_INSTALLED := $(shell [[ -e "bin/sfncli" ]] && bin/sfncli --version)
# AUTH_HEADER is used to help avoid github ratelimiting
AUTH_HEADER = $(shell [[ ! -z "${GITHUB_API_TOKEN}" ]] && echo "Authorization: token $(GITHUB_API_TOKEN)")
SFNCLI_LATEST = $(shell \
curl -f -s https://api.github.com/repos/Clever/sfncli/releases | jq -r 'map(select(.prerelease)) | .[0].tag_name')
curl --retry 5 -f -s --header "$(AUTH_HEADER)" \
https://api.github.com/repos/Clever/sfncli/releases/latest | \
grep tag_name | \
cut -d\" -f4)

.PHONY: bin/sfncli sfncli-update-makefile ensure-sfncli-version-set ensure-curl-installed

Expand Down

0 comments on commit 15014ca

Please sign in to comment.