From 007164c93fc407eb9b9e2f84e5192f5c45d71156 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Thu, 11 Apr 2024 06:10:05 -0500 Subject: [PATCH] api call in github actions inconsistent --- Makefiles/Makefile.OSX | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefiles/Makefile.OSX b/Makefiles/Makefile.OSX index f5a5535e..1549cf4e 100644 --- a/Makefiles/Makefile.OSX +++ b/Makefiles/Makefile.OSX @@ -106,11 +106,11 @@ Frameworks: Frameworks/SDL2.dmg.url: | Frameworks $(info Finding Latest Release : $@) - $(SILENT)curl -fs https://api.github.com/repos/libsdl-org/SDL/releases/latest | awk '/"browser_download_url": "(.*\.dmg)"/{m++; if (m>1) exit; print $$2 }' | tr -d '"' > $@ + $(SILENT)curl --retry 5 --retry-delay 2 --fail-with-body -s https://api.github.com/repos/libsdl-org/SDL/releases/latest | awk '/"browser_download_url": "(.*\.dmg)"/{m++; if (m>1) exit; print $$2 }' | tr -d '"' > $@ Frameworks/SDL2_net.dmg.url: | Frameworks $(info Finding Latest Release : $@) - $(SILENT)curl -fs https://api.github.com/repos/libsdl-org/SDL_net/releases/latest | awk '/"browser_download_url": "(.*\.dmg)"/{m++; if (m>1) exit; print $$2 }' | tr -d '"' > $@ + $(SILENT)curl --retry 5 --retry-delay 2 --fail-with-body -s https://api.github.com/repos/libsdl-org/SDL_net/releases/latest | awk '/"browser_download_url": "(.*\.dmg)"/{m++; if (m>1) exit; print $$2 }' | tr -d '"' > $@ Frameworks/SDL2.dmg: Frameworks/SDL2.dmg.url $(info Downloading : $(shell cat $@.url))