From 669247bf98e047cdbfa70c5fe9881660a9cd2ec0 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:48:14 +0530 Subject: [PATCH] Display local manifests by default To disable this, set a secret called DISPLAY_FALSE --- .github/workflows/main.yml | 8 ++++++++ .github/workflows/selfhosted.yml | 8 ++++++++ .github/workflows/twrp-legacy.yml | 8 ++++++++ .github/workflows/twrp.yml | 8 ++++++++ README.md | 2 ++ 5 files changed, 34 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc1785b7..c193f13c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -157,6 +157,14 @@ jobs: echo "Build Command: ${{ github.event.inputs.BUILD_COMMAND }}" echo "Clean Build: ${{ github.event.inputs.CLEAN_BUILD }}" echo "::endgroup::" + + echo "Displaying Local Manifests" + if [[ -z "${{ secrets.DISPLAY_FALSE }}" ]]; then + git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{ github.event.inputs.LOCAL_MANIFEST_BRANCH }} local_manifests + cat local_manifests/*.xml + else + echo "Displaying is disabled through secrets." + fi outputs: PROJECTFOLDER: ${{ steps.proj-variables.outputs.PROJECTFOLDER }} PROJECTID: ${{ steps.proj-variables.outputs.PROJECTID }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index f20418fd..0f749b4d 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -197,6 +197,14 @@ jobs: echo "Build Command: ${{ github.event.inputs.BUILD_COMMAND }}" echo "Clean Build: ${{ github.event.inputs.CLEAN_BUILD }}" echo "::endgroup::" + + echo "Displaying Local Manifests" + if [[ -z "${{ secrets.DISPLAY_FALSE }}" ]]; then + git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{ github.event.inputs.LOCAL_MANIFEST_BRANCH }} local_manifests + cat local_manifests/*.xml + else + echo "Displaying is disabled through secrets." + fi outputs: PROJECTFOLDER: ${{ steps.proj-variables.outputs.PROJECTFOLDER }} PROJECTID: ${{ steps.proj-variables.outputs.PROJECTID }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index 589d83f1..158feeac 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -81,6 +81,14 @@ jobs: echo "Clean Build: ${{ github.event.inputs.CLEAN_BUILD }}" echo "::endgroup::" + echo "Displaying Local Manifests" + if [[ -z "${{ secrets.DISPLAY_FALSE }}" ]]; then + git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{ github.event.inputs.LOCAL_MANIFEST_BRANCH }} local_manifests + cat local_manifests/*.xml + else + echo "Displaying is disabled through secrets." + fi + - name: Set Project variables id: proj-variables run: | diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index b0f99f9b..40ee07fa 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -81,6 +81,14 @@ jobs: echo "Clean Build: ${{ github.event.inputs.CLEAN_BUILD }}" echo "::endgroup::" + echo "Displaying Local Manifests" + if [[ -z "${{ secrets.DISPLAY_FALSE }}" ]]; then + git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{ github.event.inputs.LOCAL_MANIFEST_BRANCH }} local_manifests + cat local_manifests/*.xml + else + echo "Displaying is disabled through secrets." + fi + - name: Set Project variables id: proj-variables run: | diff --git a/README.md b/README.md index bb922a57..58825d8a 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,8 @@ Extra flags for crave binary Custom Upload limit for telegram-upload. Default is 2147483648 ### GH_UPLOAD_LIMIT (Optional) Custom Upload limit for github releases. Default is 2147483648 +### DISPLAY_FALSE (Optional) +This workflow displays your local manifests by default. To disable this, create this secret with any data ## Inputs Explanation ### Base Project