mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-06 03:16:35 -06:00
remove debug step, try GH_TOKEN authorization, run.sh add Bearer token auth
This commit is contained in:
13
.github/workflows/integration.yaml
vendored
13
.github/workflows/integration.yaml
vendored
@@ -6,6 +6,8 @@ on:
|
||||
workflows: ["Build"]
|
||||
types:
|
||||
- completed
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
jobs:
|
||||
integration-windows:
|
||||
@@ -18,16 +20,11 @@ jobs:
|
||||
integration-unix:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
os: [ubuntu-latest, macos-latest, macos-13]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: 'Integration (${{ matrix.os }})'
|
||||
|
||||
steps:
|
||||
- name: Debug (MacOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: |
|
||||
curl -s https://api.github.com/repos/Xevion/spotify-player-quickauth/releases/latest
|
||||
curl -s https://api.github.com/repos/Xevion/spotify-player-quickauth/releases/latest | grep 'browser_download_url'
|
||||
curl -s https://api.github.com/repos/Xevion/spotify-player-quickauth/releases/latest | grep 'browser_download_url' | grep 'aarch64-apple-darwin'
|
||||
|
||||
- name: Run Integration
|
||||
run: curl -sSL https://raw.githubusercontent.com/Xevion/spotify-player-quickauth/refs/heads/master/run.sh | sh
|
||||
5
run.sh
5
run.sh
@@ -17,7 +17,10 @@ fi
|
||||
# Fetch the latest release download URL
|
||||
REPO="Xevion/spotify-player-quickauth"
|
||||
API_URL="https://api.github.com/repos/$REPO/releases/latest"
|
||||
DOWNLOAD_URL=$(curl -s $API_URL | grep "browser_download_url" | grep $target | cut -d '"' -f 4)
|
||||
if [ -n "$GH_TOKEN" ]; then
|
||||
API_URL="$API_URL --header 'Authorization: Bearer $GH_TOKEN'"
|
||||
fi
|
||||
DOWNLOAD_URL=$(curl -s $API_URL | grep "browser_download_url" | grep $target | cut -d '"' -f 4)
|
||||
|
||||
if [ -z "$DOWNLOAD_URL" ]; then
|
||||
echo "No release could be found for the current platform"
|
||||
|
||||
Reference in New Issue
Block a user