diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfa2384a75..1772917bbe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -544,3 +544,29 @@ strip EXIF: echo "https://beinset.medium.com/exif-metadata-a-hidden-door-to-cyber-vulnerabilities-52b0dd2ff4de"; exit 1; } + +repo/index.html: + stage: test + needs: [] + image: debian:bookworm-slim + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + changes: + paths: + - .gitlab-ci.yml + - repo/index.* + # only check pushes to fdroids own repo + - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_PATH == "fdroid/fdroiddata" + changes: + compare_to: 'refs/heads/master' + paths: + - .gitlab-ci.yml + - repo/index.* + script: + - apt-get -qy update + - apt-get -qy install --no-install-recommends linkchecker tidy + - export EXITVALUE=0 + - function set_error() { export EXITVALUE=1; printf "\x1b[31mERROR `history|tail -2|head -1|cut -b 6-500`\x1b[0m\n"; } + - linkchecker repo/index.html || set_error + - tidy repo/index.html || set_error + - exit $EXITVALUE diff --git a/repo/index.html b/repo/index.html index cbb5022a27..bde1c583f0 100644 --- a/repo/index.html +++ b/repo/index.html @@ -19,10 +19,10 @@
- This is a mirror of the f-droid.org collection of free software for Android. You can use it by sharing + This is a mirror of the f-droid.org collection of free software for Android. You can use it by sharing this link - + to your F-Droid client app.
@@ -53,17 +53,17 @@- 这是 Android 自由软件目录 f-droid.org 的镜像。您可以点击 + 这是 Android 自由软件目录 f-droid.org 的镜像。您可以点击 此链接 - + 将其添加到您的 F-Droid 客户端。
如果你尚未安装 F-Droid 客户端,你可以直接从 https://f-droid.org 下载。
对于首次安装的用户,f-droid.org 是官方下载地址,也应当始终是你的首选。如果你无法访问此网站,那么下方有其他选项。你将需要格外谨慎,确保使用你信任的来源。恶意行为者可能会将你带到有伪造及潜在恶意的 F-Droid 客户端。
+对于首次安装的用户,f-droid.org 是官方下载地址,也应当始终是你的首选。如果你无法访问此网站,那么下方有其他选项。你将需要格外谨慎,确保使用你信任的来源。恶意行为者可能会将你带到有伪造及潜在恶意的 F-Droid 客户端。
这些替代来源由 F-Droid 团队提供,请验证它们正确: