From 8cd53d16fcc13ff8e24f3d3db9f88cab822c5126 Mon Sep 17 00:00:00 2001 From: Scyu_ Date: Mon, 14 Oct 2024 12:59:57 +0100 Subject: [PATCH] chore: add auth token --- scripts/dev/download_server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dev/download_server b/scripts/dev/download_server index 97798ed..acfc5d8 100644 --- a/scripts/dev/download_server +++ b/scripts/dev/download_server @@ -1,4 +1,4 @@ -#!/bin/sh +hore:#!/bin/sh set -e PREFIX="[Init]" @@ -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"