1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-10-31 06:32:54 +01:00

Fix nightly healthcheck variables

This commit is contained in:
José Rebelo 2024-10-27 23:11:20 +00:00
parent 7acda0d52c
commit 35ca3f947e

View File

@ -10,7 +10,7 @@ steps:
secrets: secrets:
- hc_url_nightly_deploy - hc_url_nightly_deploy
commands: | commands: |
curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}/start" 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') 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) CURRENT_VERSION_CODE=$(git rev-list HEAD --count)
@ -21,7 +21,7 @@ steps:
then then
echo "This version is already released, we quit!" echo "This version is already released, we quit!"
touch .do_not_build touch .do_not_build
curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}" curl -fsS -m 10 --retry 5 "$${HC_URL_NIGHTLY_DEPLOY}"
fi fi
@ -112,7 +112,7 @@ steps:
on-success: on-success:
image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0 image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0
commands: commands:
- curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}" - curl -fsS -m 10 --retry 5 "$${HC_URL_NIGHTLY_DEPLOY}"
when: when:
status: success status: success
secrets: secrets:
@ -121,7 +121,7 @@ steps:
on-error: on-error:
image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0 image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0
commands: commands:
- curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}/fail" - curl -fsS -m 10 --retry 5 "$${HC_URL_NIGHTLY_DEPLOY}/fail"
- cd .. - cd ..
- mkdir -p repoconfig - mkdir -p repoconfig
- cd repoconfig - cd repoconfig