From ef11bed46b060f1c33805c59f043eb359ad38767 Mon Sep 17 00:00:00 2001
From: "aric3435 (INACTIVE)" <78001398+arichornlover@users.noreply.github.com>
Date: Tue, 15 Oct 2024 17:24:58 -0500
Subject: [PATCH] Update buildapp.yml
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Added step hiding URL to decrypted YOUTUBE ipa from public actions workflow log. - these changes were by “marcinmajsc” in https://github.com/arichornlover/uYouEnhanced/pull/768
---
.github/workflows/buildapp.yml | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/buildapp.yml b/.github/workflows/buildapp.yml
index c9033c8..3036358 100644
--- a/.github/workflows/buildapp.yml
+++ b/.github/workflows/buildapp.yml
@@ -120,10 +120,16 @@ jobs:
(echo export PATH="/usr/local/opt/make/libexec/gnubin:$PATH" >> ~/.bash_profile)
source ~/.bash_profile
+ - name: Hash YT ipa url
+ run: |
+ URL_YT="$(jq -r '.inputs.decrypted_youtube_url' $GITHUB_EVENT_PATH)"
+ echo ::add-mask::$URL_YT
+ echo URL_YT=$URL_YT >> $GITHUB_ENV
+
- name: Prepare YouTube iPA
run: |
# Download and unzip iPA
- wget "$YOUTUBE_URL" --no-verbose -O main/YouTube.ipa
+ wget "$YOUTUBE_URL" --quiet --no-verbose -O main/YouTube.ipa
unzip -q main/YouTube.ipa -d main/tmp
# Get the version number of the YouTube app and store it
echo "YT_VERSION=$(grep -A 1 'CFBundleVersion' main/tmp/Payload/YouTube.app/Info.plist | grep '' | awk -F'[><]' '{print $3}')" >> $GITHUB_ENV
@@ -155,7 +161,7 @@ jobs:
cp -R main/Extensions/*.appex main/tmp/Payload/YouTube.app/PlugIns
env:
THEOS: ${{ github.workspace }}/theos
- YOUTUBE_URL: ${{ inputs.decrypted_youtube_url }}
+ YOUTUBE_URL: ${{ env.URL_YT }}
- name: Build Package
id: build_package