From 665abdd65ac4bd27c187f891a0d64fb7e2aa76b3 Mon Sep 17 00:00:00 2001 From: Bryce Hackel <34104885+bhackel@users.noreply.github.com> Date: Sat, 27 Jul 2024 00:50:00 -0700 Subject: [PATCH] Add job summary --- .github/workflows/buildapp.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/buildapp.yml b/.github/workflows/buildapp.yml index 457cf22..f88502f 100644 --- a/.github/workflows/buildapp.yml +++ b/.github/workflows/buildapp.yml @@ -122,8 +122,10 @@ jobs: - name: Prepare YouTube iPA run: | + # Download and unzip iPA wget "$YOUTUBE_URL" --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 # Get the version number of the latest release wget -qO- https://github.com/dayanch96/YTLite/releases/latest > main/tmp/release_page.html @@ -175,7 +177,9 @@ jobs: CATBOX_URL=$(echo $RESPONSE | grep -o -E 'https://files.catbox.moe/[^"]*') echo "Uploaded artifact to $CATBOX_URL" CATBOX_FILE=$(echo $CATBOX_URL | sed 's|https://files.catbox.moe/||') + # Pass Catbox URL to the release steps echo "CATBOX_FILE=$CATBOX_FILE" >> $GITHUB_ENV + echo "CATBOX_URL=$CATBOX_URL" >> $GITHUB_ENV - name: Prepare Release Notes if: ${{ inputs.create_release }} @@ -206,3 +210,30 @@ jobs: --data-raw '{ "event_type": "update-altstore-source-trigger" }' + + - name: Job Summary + run: | + echo -e '### ๐Ÿ“บ Build Complete' >> $GITHUB_STEP_SUMMARY + + - name: Job Summary - Artifact Upload + if: ${{ inputs.upload_artifact }} + run: | + echo -e '### ๐Ÿ“ฆ Artifact Upload\n\nThe artifact was uploaded successfully! [Scroll down](#artifacts) to view the artifact. Note that you must be signed in to GitHub to download it.' >> $GITHUB_STEP_SUMMARY + + - name: Job Summary - Catbox Upload + if: ${{ inputs.catbox_upload}} + run: | + echo -e '### ๐Ÿฑ Catbox Upload\n\nThe Catbox upload was successful! Here is a permanent shareable link: '$CATBOX_URL >> $GITHUB_STEP_SUMMARY + + - name: Job Summary - Draft Release + if: ${{ inputs.create_release }} + run: | + REPO_URL="https://github.com/${{ github.repository }}" + RELEASES_URL="$REPO_URL/releases" + echo -e '### ๐Ÿš€ Draft Release\n\nThe release draft has been created successfully! You can view your releases here: '$RELEASES_URL >> $GITHUB_STEP_SUMMARY + + - name: Job Summary - Link to remove GitHub Action runs + run: | + REPO_URL="https://github.com/${{ github.repository }}" + DELETE_RUNS_URL="$REPO_URL/actions/workflows/delete-workflow-runs.yml" + echo -e '### ๐Ÿงน Cleanup\n\nYou can remove previous GitHub Action runs here: '$DELETE_RUNS_URL >> $GITHUB_STEP_SUMMARY