magisk-zapret2/.forgejo/workflows/source-guards.yml
loop-uh 8bf923faaa
All checks were successful
Background release validation / Prepare Version (push) Successful in 4s
Magisk source guards / guards (push) Successful in 3s
Background release validation / Fetch latest upstream zapret2 release (push) Successful in 16s
Background release validation / Shell integration tests (push) Successful in 1m44s
Background release validation / Build Android APK (push) Successful in 6m33s
Background release validation / Package Magisk Module (push) Successful in 10s
Fetch zapret2 directly from official releases
2026-08-07 15:19:53 +03:00

33 lines
1,010 B
YAML

name: Magisk source guards
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
guards:
runs-on: android
timeout-minutes: 30
steps:
- name: Checkout
uses: https://data.forgejo.org/actions/checkout@v6
with:
persist-credentials: false
- name: Validate repository policy and shell syntax
shell: bash
run: |
set -euo pipefail
git diff --check
if git grep -n -I -E -- 'git\.zapret\.moe/(api/v1/repos/)?zapretdiscordyoutube/[A-Za-z0-9._-]+-upstream' -- ':!.forgejo/workflows/source-guards.yml'; then
echo 'Use the official third-party source instead of our retired mirror.' >&2
exit 1
fi
bash tests/release/source-policy.sh
bash -n upstream/fetch-release.sh
bash tests/release/release-channel.sh
while IFS= read -r -d '' script; do
bash -n "$script"
done < <(find . -type f -name '*.sh' -print0)