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