Skip to content

Commit

Permalink
api call in github actions inconsistent
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed Apr 11, 2024
1 parent 220ecd9 commit dbafccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefiles/Makefile.OSX
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit dbafccb

Please sign in to comment.