Skip to content

Commit

Permalink
chore: add auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
DevScyu committed Oct 14, 2024
1 parent 5a64a92 commit 8cd53d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dev/download_server
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
hore:#!/bin/sh
set -e

PREFIX="[Init]"
Expand All @@ -9,7 +9,7 @@ if [ "$CUSTOM_SERVER_REPO" ]; then
echo "$PREFIX Checking for server updates from $CUSTOM_SERVER_REPO"

GITHUB_API="https://api.github.com/repos/$CUSTOM_SERVER_REPO/releases/$CUSTOM_SERVER_TAG"
LATEST_RELEASE_DATE=$(curl -s "$GITHUB_API" | jq -r '.published_at' 2>/dev/null)
LATEST_RELEASE_DATE=$(curl -s "$GITHUB_API" --header "authorization: Bearer $KEEPUP_GITHUB_AUTH_TOKEN" | jq -r '.published_at' 2>/dev/null)
CURRENT_RELEASE_DATE=$(getfattr --only-values -n user.release-date "$CUSTOM_SERVER" 2>/dev/null)

echo "$PREFIX Latest release date: $LATEST_RELEASE_DATE"
Expand Down

0 comments on commit 8cd53d1

Please sign in to comment.