From 5b5bf0d669bbaafd4b800b7b59a137afb74c821d Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Sun, 19 May 2024 10:35:06 +1000 Subject: [PATCH] dont have api keys public LOL --- .gitignore | 1 + lidarr.sh | 4 +++- prowlarr.sh | 4 +++- radarr.sh | 4 +++- readarr.sh | 4 +++- sonarr.sh | 4 +++- 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 567609b..7b42952 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build/ +apikeys.sh diff --git a/lidarr.sh b/lidarr.sh index c1bdded..4def63f 100755 --- a/lidarr.sh +++ b/lidarr.sh @@ -1,6 +1,8 @@ #!/usr/bin/env zsh -json=$(curl -Ls https://api.github.com/repos/Lidarr/Lidarr/releases/latest --header "Authorization: Bearer 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" --header "X-GitHub-Api-Version: 2022-11-28") +source ./apikeys.sh + +json=$(curl -Ls https://api.github.com/repos/Lidarr/Lidarr/releases/latest --header "Authorization: Bearer $GITHUB_API_KEY" --header "X-GitHub-Api-Version: 2022-11-28") name=$(jq '.name' <<<$json | tr -d '"') echo "Building Lidarr v$name" diff --git a/prowlarr.sh b/prowlarr.sh index 5a0caf8..e824bce 100755 --- a/prowlarr.sh +++ b/prowlarr.sh @@ -1,6 +1,8 @@ #!/usr/bin/env zsh -json=$(curl -Ls https://api.github.com/repos/Prowlarr/Prowlarr/releases/latest --header "Authorization: Bearer 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" --header "X-GitHub-Api-Version: 2022-11-28") +source ./apikeys.sh + +json=$(curl -Ls https://api.github.com/repos/Prowlarr/Prowlarr/releases/latest --header "Authorization: Bearer $GITHUB_API_KEY" --header "X-GitHub-Api-Version: 2022-11-28") name=$(jq '.name' <<<$json | tr -d '"') echo "Building Prowlarr v$name" diff --git a/radarr.sh b/radarr.sh index 3cba07d..416a5e4 100755 --- a/radarr.sh +++ b/radarr.sh @@ -1,6 +1,8 @@ #!/usr/bin/env zsh -json=$(curl -Ls https://api.github.com/repos/Radarr/Radarr/releases/latest --header "Authorization: Bearer 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" --header "X-GitHub-Api-Version: 2022-11-28") +source ./apikeys.sh + +json=$(curl -Ls https://api.github.com/repos/Radarr/Radarr/releases/latest --header "Authorization: Bearer $GITHUB_API_KEY" --header "X-GitHub-Api-Version: 2022-11-28") name=$(jq '.name' <<<$json | tr -d '"') echo "Building Radarr v$name" diff --git a/readarr.sh b/readarr.sh index 134e48f..2fc48f8 100755 --- a/readarr.sh +++ b/readarr.sh @@ -1,6 +1,8 @@ #!/usr/bin/env zsh -json=$(curl -Ls https://api.github.com/repos/Readarr/Readarr/releases --header "Authorization: Bearer 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" --header "X-GitHub-Api-Version: 2022-11-28" | jq 'map(select(.prerelease)) | first') +source ./apikeys.sh + +json=$(curl -Ls https://api.github.com/repos/Readarr/Readarr/releases --header "Authorization: Bearer $GITHUB_API_KEY" --header "X-GitHub-Api-Version: 2022-11-28" | jq 'map(select(.prerelease)) | first') name=$(jq '.name' <<<$json | tr -d '"') echo "Building Readarr v$name" diff --git a/sonarr.sh b/sonarr.sh index c1d7168..c963e8d 100755 --- a/sonarr.sh +++ b/sonarr.sh @@ -1,6 +1,8 @@ #!/usr/bin/env zsh -json=$(curl -Ls https://api.github.com/repos/Sonarr/Sonarr/releases/latest --header "Authorization: Bearer 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" --header "X-GitHub-Api-Version: 2022-11-28") +source ./apikeys.sh + +json=$(curl -Ls https://api.github.com/repos/Sonarr/Sonarr/releases/latest --header "Authorization: Bearer $GITHUB_API_KEY" --header "X-GitHub-Api-Version: 2022-11-28") name=$(jq '.name' <<<$json | tr -d '"') echo "Building Sonarr v$name"