diff --git a/.woodpecker/nightly.yml b/.woodpecker/nightly.yml index 38894cc10..5e1a29c8c 100644 --- a/.woodpecker/nightly.yml +++ b/.woodpecker/nightly.yml @@ -7,7 +7,11 @@ clone: steps: check-if-released: image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0 + secrets: + - hc_url_nightly_deploy commands: | + curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}/start" + RELEASED_VERSION_CODE=$(curl https://freeyourgadget.codeberg.page/fdroid/repo/index-v1.json | jq '.packages."nodomain.freeyourgadget.gadgetbridge.nightly"[0].versionCode') CURRENT_VERSION_CODE=$(git rev-list HEAD --count) @@ -17,6 +21,7 @@ steps: then echo "This version is already released, we quit!" touch .do_not_build + curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}" fi @@ -104,9 +109,19 @@ steps: # bump secrets: [ commit_token ] + on-success: + image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0 + commands: + - curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}" + when: + status: success + secrets: + - hc_url_nightly_deploy + on-error: image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0 commands: + - curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}/fail" - cd .. - mkdir -p repoconfig - cd repoconfig @@ -114,7 +129,9 @@ steps: - ./fdroid-repo-config/repoconfig/create_issue_comment.sh "CI failed" when: status: failure - secrets: [ commit_token ] + secrets: + - hc_url_nightly_deploy + - commit_token when: - event: cron