From 71982bb184402c02e69440e976463b79ba20de65 Mon Sep 17 00:00:00 2001 From: Luca LeBlanc <67206487+yodaluca23@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:13:44 -0500 Subject: [PATCH] Update Build and Release.yml --- .github/workflows/Build and Release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Build and Release.yml b/.github/workflows/Build and Release.yml index 2456ae4..078b84f 100644 --- a/.github/workflows/Build and Release.yml +++ b/.github/workflows/Build and Release.yml @@ -132,16 +132,15 @@ jobs: packages_data=$(curl -s https://repo.chariz.com/Packages) # Find the entry for Orion package orion_entry=$(echo "$packages_data" | awk '/Package: dev.theos.orion14/,/^$/') - # Extract necessary details from the Orion entry - orion_version=$(echo "$orion_entry" | grep -oP 'Version: \K.*') - orion_download_url=$(echo "$orion_entry" | grep -oP 'Filename: \K.*') + # Extract necessary details from the Orion entry using sed + orion_version=$(echo "$orion_entry" | sed -n 's/^Version: //p') + orion_download_url=$(echo "$orion_entry" | sed -n 's/^Filename: //p') # Download Orion .deb file curl -L "https://repo.chariz.com/$orion_download_url" -o "Build Components/orion" # Set environment variables echo "orion=Build Components/orion" >> $GITHUB_ENV echo "ORIONVERSION=$orion_version" >> $GITHUB_ENV - - name: Upload Orion to VirusTotal if: ${{ env.VIRUSTOTALKEY }} uses: crazy-max/ghaction-virustotal@v4