From a9516faad4f08fa21a80f2add9aed9260d8192b8 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 3 Oct 2024 14:43:05 -0500 Subject: [PATCH] Use short header option, rename workflow to Integration --- .github/workflows/integration.yaml | 8 ++++---- run.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 4124ee0..7b7f4e8 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -1,4 +1,4 @@ -name: Integration Test +name: Integration on: workflow_dispatch: @@ -6,8 +6,6 @@ on: workflows: ["Build"] types: - completed -env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: integration-windows: @@ -27,4 +25,6 @@ jobs: steps: - name: Run Integration - run: curl -sSL https://raw.githubusercontent.com/Xevion/spotify-player-quickauth/refs/heads/master/run.sh | sh \ No newline at end of file + run: curl -sSL https://raw.githubusercontent.com/Xevion/spotify-player-quickauth/refs/heads/master/run.sh | sh + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/run.sh b/run.sh index 4760d3a..99c6061 100755 --- a/run.sh +++ b/run.sh @@ -18,7 +18,7 @@ fi REPO="Xevion/spotify-player-quickauth" API_URL="https://api.github.com/repos/$REPO/releases/latest" if [ -n "$GH_TOKEN" ]; then - API_URL="$API_URL --header 'Authorization: Bearer $GH_TOKEN'" + API_URL="$API_URL -H 'Authorization: Bearer $GH_TOKEN'" fi DOWNLOAD_URL=$(curl -s $API_URL | grep "browser_download_url" | grep $target | cut -d '"' -f 4)