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 906b3f8 commit 71982bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/Build and Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71982bb

Please sign in to comment.