Skip to content

Commit 747079c

Browse files
committed
chore: fix update script and latests with header for auth
1 parent 087663a commit 747079c

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/scripts/updates.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ process_channel() {
1414
local channel="$2"
1515
local stable="$3"
1616

17-
exec 3>&1 # Open FD 3 for returning structured output
18-
1917
echo "::group::Checking ${app}/${channel} (stable=${stable})"
2018

2119
published_version=$(

apps/audiobookshelf/ci/latest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
2-
version=$(curl -sLf https://api.github.com/repos/advplyr/audiobookshelf/releases/latest | jq --raw-output '. | .tag_name')
2+
AUTH="Authorization: token ${GH_PAT:-${TOKEN:-}}"
3+
version=$(curl -sLf -H "$AUTH" https://api.github.com/repos/advplyr/audiobookshelf/releases/latest | jq --raw-output '. | .tag_name')
34
# version="${version#*v}"
45
version="${version#*release-}"
56
printf "%s" "${version}"

apps/gluetun/ci/latest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2-
version=$(curl -Lsf https://api.github.com/repos/qdm12/gluetun/releases/latest | jq --raw-output '. | .tag_name')
2+
AUTH="Authorization: token ${GH_PAT:-${TOKEN:-}}"
3+
version=$(curl -Lsf -H "$AUTH" https://api.github.com/repos/qdm12/gluetun/releases/latest | jq --raw-output '. | .tag_name')
34
version="${version#*v}"
45
printf "%s" "${version}"

apps/rclone-manager/ci/latest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2-
version=$(curl -Lsf https://api.github.com/repos/rclone/rclone/releases/latest | jq --raw-output '. | .tag_name')
2+
AUTH="Authorization: token ${GH_PAT:-${TOKEN:-}}"
3+
version=$(curl -Lsf -H "$AUTH" https://api.github.com/repos/rclone/rclone/releases/latest | jq --raw-output '. | .tag_name')
34
version="${version#*v}"
45
printf "%s" "${version}"

apps/tautulli/ci/latest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
2-
version=$(curl -sLf "https://api.github.com/repos/Tautulli/Tautulli/releases/latest" | jq --raw-output '. | .tag_name')
2+
AUTH="Authorization: token ${GH_PAT:-${TOKEN:-}}"
3+
version=$(curl -sLf -H "$AUTH" "https://api.github.com/repos/Tautulli/Tautulli/releases/latest" | jq --raw-output '. | .tag_name')
34
version="${version#*v}"
45
version="${version#*release-}"
56
printf "%s" "${version}"

0 commit comments

Comments
 (0)