From 0a16adce3f3706db79fbad23c5240842b036da65 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Sun, 15 Dec 2024 19:52:33 +0530 Subject: [PATCH] Add support for alternative resync location https://github.com/omansh-krishn/crave-aosp-archlinux-docker-image/commit/7975018647b27d9e91f1775eaf9d42cde13128f9#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557R57 --- .github/workflows/main.yml | 6 +++++- .github/workflows/selfhosted.yml | 6 +++++- .github/workflows/twrp-legacy.yml | 6 +++++- .github/workflows/twrp.yml | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index debb7e16..8ea597d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -458,7 +458,11 @@ jobs: $LOCAL_MANIFEST && \ # Sync the repositories - /opt/crave/resync.sh && \ + if [ -f /usr/bin/resync ]; then + /usr/bin/resync # For compatibility with Omansh's Docker image + else + /opt/crave/resync.sh + fi && \ # Set up build environment export BUILD_USERNAME=${{ github.actor }} ; \ diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 03714e29..3e9e321d 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -493,7 +493,11 @@ jobs: $LOCAL_MANIFEST && \ # Sync the repositories - /opt/crave/resync.sh && \ + if [ -f /usr/bin/resync ]; then + /usr/bin/resync # For compatibility with Omansh's Docker image + else + /opt/crave/resync.sh + fi && \ # Set up build environment export BUILD_USERNAME=${{ github.actor }} ; \ diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index 1bb2a9b3..8af23974 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -373,7 +373,11 @@ jobs: $LOCAL_MANIFEST && \ # Sync the repositories - /opt/crave/resync.sh && \ + if [ -f /usr/bin/resync ]; then + /usr/bin/resync # For compatibility with Omansh's Docker image + else + /opt/crave/resync.sh + fi && \ # Set up build environment export BUILD_USERNAME=${{ github.actor }} ; \ diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index b649e2c1..8a2ffce9 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -373,7 +373,11 @@ jobs: $LOCAL_MANIFEST && \ # Sync the repositories - /opt/crave/resync.sh && \ + if [ -f /usr/bin/resync ]; then + /usr/bin/resync # For compatibility with Omansh's Docker image + else + /opt/crave/resync.sh + fi && \ # Set up build environment export BUILD_USERNAME=${{ github.actor }} ; \