mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-10 08:08:44 -06:00
Multi-step grep, separate Windows integration into separate job
This commit is contained in:
16
.github/workflows/integration.yaml
vendored
16
.github/workflows/integration.yaml
vendored
@@ -8,17 +8,19 @@ on:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
integration:
|
||||
integration-windows:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Run Integration
|
||||
run: iex (irm "https://raw.githubusercontent.com/Xevion/spotify-player-quickauth/refs/heads/master/run.ps1")
|
||||
|
||||
integration-unix:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Run Integration
|
||||
if: ${{ !contains(matrix.os, 'windows') }}
|
||||
run: curl -sSL https://raw.githubusercontent.com/Xevion/spotify-player-quickauth/refs/heads/master/run.sh | sh
|
||||
|
||||
- name: Run Integration (Windows)
|
||||
if: ${{ contains(matrix.os, 'windows') }}
|
||||
run: iex (irm "https://raw.githubusercontent.com/Xevion/spotify-player-quickauth/refs/heads/master/run.ps1")
|
||||
2
run.sh
2
run.sh
@@ -17,7 +17,7 @@ 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.*$target" | cut -d '"' -f 4)
|
||||
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