-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1.2 KB
/
Copy pathci.yml
File metadata and controls
32 lines (29 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI (docs check)
# Lightweight, auto-triggered check — separate from build.yml/build-sample.yml
# (workflow_dispatch only, since the full OpenCV build is heavy/slow).
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
docs-version-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docs version consistency check
# Source of truth = what's ACTUALLY live on Maven Central (not gradle.properties'
# VERSION, which can be bumped locally without ever being published).
run: |
V=$(curl -sf "https://repo1.maven.org/maven2/dev/ffmpegkit-maintained/opencv-contrib-android/maven-metadata.xml" \
| grep -oP '<release>\K[^<]+')
if [ -z "$V" ]; then
echo "::error::could not fetch the current release version from Maven Central metadata"
exit 1
fi
echo "Live on Maven Central: $V"
if ! grep -q "dev.ffmpegkit-maintained:opencv-contrib-android:$V" README.md; then
echo "::error file=README.md::does not mention the Maven Central version ($V) — likely stale."
exit 1
fi
echo "README.md is in sync with $V."