Skip to content

Commit c75ca90

Browse files
authored
Merge pull request pi-hole#760 from pi-hole/fix/latest-tag
Use Location: header for GitHub API call for latest tag detection.
2 parents 9bcd8e1 + 494667c commit c75ca90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh-actions-vars.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ MULTIARCH_IMAGE="${BASE_IMAGE}:${GIT_TAG}"
4141

4242
# To get latest released, cut a release on https://github.com/pi-hole/docker-pi-hole/releases (manually gated for quality control)
4343
latest_tag='UNKNOWN'
44-
if ! latest_tag=$(curl -sI https://github.com/pi-hole/docker-pi-hole/releases/latest | grep --color=never -i Location | awk -F / '{print $NF}' | tr -d '[:cntrl:]'); then
44+
if ! latest_tag=$(curl -sI https://github.com/pi-hole/docker-pi-hole/releases/latest | grep --color=never -i Location: | awk -F / '{print $NF}' | tr -d '[:cntrl:]'); then
4545
print "Failed to retrieve latest docker-pi-hole release metadata"
4646
else
4747
if [[ "${GIT_TAG}" == "${latest_tag}" ]] ; then

0 commit comments

Comments
 (0)