diff --git a/.woodpecker/nightly.yml b/.woodpecker/nightly.yml index caa4416f6..89425d101 100644 --- a/.woodpecker/nightly.yml +++ b/.woodpecker/nightly.yml @@ -15,14 +15,15 @@ steps: echo $RELEASED_VERSION_CODE if [ "$RELEASED_VERSION_CODE" = "$CURRENT_VERSION_CODE" ] then - echo "This version is already released, quit!" - return 1 + echo "This version is already released, we quit!" + touch .do_not_build fi build-apks: image: codeberg.org/freeyourgadget/android-fdroid-tools:latest commands: + - if [ -f .do_not_build ]; then return 0; fi # build the apks - echo "$${SIGNING_KEY}" | base64 -d > app/keystore.p12 - ./gradlew assembleMainNightly -Dnightly_store_file="keystore.p12" -Dnightly_store_password="$${KEYSTOREPASS}" -Dnightly_key_alias="gadgetbridge" -Dnightly_key_password="$${KEYPASS}" @@ -33,6 +34,7 @@ steps: pull-repo-config: image: codeberg.org/freeyourgadget/android-fdroid-tools:latest commands: + - if [ -f .do_not_build ]; then return 0; fi - cd .. - pwd - mkdir repoconfig @@ -45,6 +47,7 @@ steps: pull-pages: image: codeberg.org/freeyourgadget/android-fdroid-tools:latest commands: + - if [ -f .do_not_build ]; then return 0; fi # prepare the pages repo, so fdroidclient can push files into it later - cd .. - pwd @@ -63,6 +66,7 @@ steps: update-fdroid-data: image: codeberg.org/freeyourgadget/android-fdroid-tools:latest commands: + - if [ -f .do_not_build ]; then return 0; fi - pwd - ../repoconfig/fdroid-repo-config/repoconfig/prepare_changelog.sh - cd ../repoconfig/fdroid-repo-config/repoconfig @@ -82,6 +86,7 @@ steps: push-pages-update-repo: image: codeberg.org/freeyourgadget/android-fdroid-tools:latest commands: + - if [ -f .do_not_build ]; then return 0; fi - cd ../pages/pages/ - git add -A - git status