mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2026-01-31 08:26:04 -06:00
Use short header option, rename workflow to Integration
This commit is contained in:
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
name: Integration Test
|
name: Integration
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -6,8 +6,6 @@ on:
|
|||||||
workflows: ["Build"]
|
workflows: ["Build"]
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
integration-windows:
|
integration-windows:
|
||||||
@@ -28,3 +26,5 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Run Integration
|
- name: Run Integration
|
||||||
run: curl -sSL https://raw.githubusercontent.com/Xevion/spotify-player-quickauth/refs/heads/master/run.sh | sh
|
run: curl -sSL https://raw.githubusercontent.com/Xevion/spotify-player-quickauth/refs/heads/master/run.sh | sh
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -18,7 +18,7 @@ fi
|
|||||||
REPO="Xevion/spotify-player-quickauth"
|
REPO="Xevion/spotify-player-quickauth"
|
||||||
API_URL="https://api.github.com/repos/$REPO/releases/latest"
|
API_URL="https://api.github.com/repos/$REPO/releases/latest"
|
||||||
if [ -n "$GH_TOKEN" ]; then
|
if [ -n "$GH_TOKEN" ]; then
|
||||||
API_URL="$API_URL --header 'Authorization: Bearer $GH_TOKEN'"
|
API_URL="$API_URL -H 'Authorization: Bearer $GH_TOKEN'"
|
||||||
fi
|
fi
|
||||||
DOWNLOAD_URL=$(curl -s $API_URL | grep "browser_download_url" | grep $target | cut -d '"' -f 4)
|
DOWNLOAD_URL=$(curl -s $API_URL | grep "browser_download_url" | grep $target | cut -d '"' -f 4)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user