From 6ef0b2b486afe3176fb13a8371b2d46c2d546fc9 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Mon, 5 Aug 2024 00:07:08 +0530 Subject: [PATCH] Try to use one line --- .github/workflows/main.yml | 7 +------ .github/workflows/selfhosted.yml | 7 +------ .github/workflows/twrp-legacy.yml | 7 +------ .github/workflows/twrp.yml | 7 +------ 4 files changed, 4 insertions(+), 24 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d42ffdb..f9d2415b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -151,12 +151,7 @@ jobs: if [[ "${{ github.event.inputs.LOCAL_MANIFEST }}" =~ \.xml(/)?$ ]]; then local_manifest_url="${{ github.event.inputs.LOCAL_MANIFEST }}" local_manifest_url="${local_manifest_url%/}" # remove trailing slash if it exists - export LOCAL_MANIFEST=$(cat <<'EOF' - mkdir -p .repo/local_manifests && \ - rm -rf .repo/local_manifests/* && \ - curl -o .repo/local_manifests/local_manifest.xml "${local_manifest_url}" - EOF - ) + export LOCAL_MANIFEST=$(mkdir -p .repo/local_manifests && rm -rf .repo/local_manifests/* && curl -o .repo/local_manifests/local_manifest.xml "${local_manifest_url}") else export LOCAL_MANIFEST="git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${github.event.inputs.LOCAL_MANIFEST_BRANCH} local_manifests" fi diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 0af69249..edca5cae 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -188,12 +188,7 @@ jobs: if [[ "${{ github.event.inputs.LOCAL_MANIFEST }}" =~ \.xml(/)?$ ]]; then local_manifest_url="${{ github.event.inputs.LOCAL_MANIFEST }}" local_manifest_url="${local_manifest_url%/}" # remove trailing slash if it exists - export LOCAL_MANIFEST=$(cat <<'EOF' - mkdir -p .repo/local_manifests && \ - rm -rf .repo/local_manifests/* && \ - curl -o .repo/local_manifests/local_manifest.xml "${local_manifest_url}" - EOF - ) + export LOCAL_MANIFEST=$(mkdir -p .repo/local_manifests && rm -rf .repo/local_manifests/* && curl -o .repo/local_manifests/local_manifest.xml "${local_manifest_url}") else export LOCAL_MANIFEST="git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${github.event.inputs.LOCAL_MANIFEST_BRANCH} local_manifests" fi diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index 4b26d896..b40bda26 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -101,12 +101,7 @@ jobs: if [[ "${{ github.event.inputs.LOCAL_MANIFEST }}" =~ \.xml(/)?$ ]]; then local_manifest_url="${{ github.event.inputs.LOCAL_MANIFEST }}" local_manifest_url="${local_manifest_url%/}" # remove trailing slash if it exists - export LOCAL_MANIFEST=$(cat <<'EOF' - mkdir -p .repo/local_manifests && \ - rm -rf .repo/local_manifests/* && \ - curl -o .repo/local_manifests/local_manifest.xml "${local_manifest_url}" - EOF - ) + export LOCAL_MANIFEST=$(mkdir -p .repo/local_manifests && rm -rf .repo/local_manifests/* && curl -o .repo/local_manifests/local_manifest.xml "${local_manifest_url}") else export LOCAL_MANIFEST="git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${github.event.inputs.LOCAL_MANIFEST_BRANCH} local_manifests" fi diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index 350a9903..0a315df3 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -101,12 +101,7 @@ jobs: if [[ "${{ github.event.inputs.LOCAL_MANIFEST }}" =~ \.xml(/)?$ ]]; then local_manifest_url="${{ github.event.inputs.LOCAL_MANIFEST }}" local_manifest_url="${local_manifest_url%/}" # remove trailing slash if it exists - export LOCAL_MANIFEST=$(cat <<'EOF' - mkdir -p .repo/local_manifests && \ - rm -rf .repo/local_manifests/* && \ - curl -o .repo/local_manifests/local_manifest.xml "${local_manifest_url}" - EOF - ) + export LOCAL_MANIFEST=$(mkdir -p .repo/local_manifests && rm -rf .repo/local_manifests/* && curl -o .repo/local_manifests/local_manifest.xml "${local_manifest_url}") else export LOCAL_MANIFEST="git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${github.event.inputs.LOCAL_MANIFEST_BRANCH} local_manifests" fi