Skip to content

Commit

Permalink
Update Build and Release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yodaluca23 authored Jun 21, 2024
1 parent fb3c0d5 commit 10511e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/Build and Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ jobs:
- name: Download SwiftProtobuf .deb file
run: |
protobuf_asset=$(curl -s https://api.github.com/repos/whoeevee/EeveeSpotify/releases/tags/${{ env.REALEEVEEVERSION }} | jq -r '.assets[] | select(.name | startswith("org.swift.protobuf.swiftprotobuf") and endswith("iphoneos-arm.deb")).browser_download_url')
protobuf_version=$(echo "$protobuf_asset" | grep -oP '(?<=org.swift.protobuf.swiftprotobuf_).*(?=_iphoneos-arm.deb)')
curl -L "$protobuf_asset" -o "Build Components/SwiftProtobuf-arm"
echo "swiftprotobuf=Build Components/SwiftProtobuf-arm" >> $GITHUB_ENV
echo "SWIFTPROTOBUFVERSION=$protobuf_version" >> $GITHUB_ENV
filename=$(basename "${protobuf_asset}")
version=$(echo "${filename}" | grep -oP '(?<=org.swift.protobuf.swiftprotobuf_)[^_]+(?=_iphoneos-arm.deb)')
echo "SWIFTPROTOBUFVERSION=${version}" >> $GITHUB_ENV
env:
REALEEVEEVERSION: ${{ env.REALEEVEEVERSION }}

Expand Down

0 comments on commit 10511e3

Please sign in to comment.