dont have api keys public LOL

This commit is contained in:
Alex Janka 2024-05-19 10:35:06 +10:00
parent 0bc9c3b176
commit 5b5bf0d669
6 changed files with 16 additions and 5 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
build/ build/
apikeys.sh

View file

@ -1,6 +1,8 @@
#!/usr/bin/env zsh #!/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 '"') name=$(jq '.name' <<<$json | tr -d '"')
echo "Building Lidarr v$name" echo "Building Lidarr v$name"

View file

@ -1,6 +1,8 @@
#!/usr/bin/env zsh #!/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 '"') name=$(jq '.name' <<<$json | tr -d '"')
echo "Building Prowlarr v$name" echo "Building Prowlarr v$name"

View file

@ -1,6 +1,8 @@
#!/usr/bin/env zsh #!/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 '"') name=$(jq '.name' <<<$json | tr -d '"')
echo "Building Radarr v$name" echo "Building Radarr v$name"

View file

@ -1,6 +1,8 @@
#!/usr/bin/env zsh #!/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 '"') name=$(jq '.name' <<<$json | tr -d '"')
echo "Building Readarr v$name" echo "Building Readarr v$name"

View file

@ -1,6 +1,8 @@
#!/usr/bin/env zsh #!/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 '"') name=$(jq '.name' <<<$json | tr -d '"')
echo "Building Sonarr v$name" echo "Building Sonarr v$name"