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 }} ; \