-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.25 KB
/
Copy pathadmob-app-ads-verify.yml
File metadata and controls
43 lines (35 loc) · 1.25 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
33
34
35
36
37
38
39
40
41
42
43
name: AdMob app-ads.txt verify
on:
schedule:
- cron: '20 14 * * *' # Daily 14:20 UTC
workflow_dispatch:
permissions:
contents: write
concurrency:
group: admob-app-ads-verify
cancel-in-progress: true
jobs:
verify-hosted-app-ads:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Verify hosted app-ads.txt (all Play/AdMob crawl paths)
run: python3 scripts/admob_status.py --also-check-play-contact-path
- name: Write admob_status.json (GSD snapshot)
run: python3 scripts/admob_metrics_snapshot.py --also-check-play-contact-path
- name: Commit admob_status.json when changed
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add marketing/data/admob_status.json
if git diff --staged --quiet; then
echo "No admob_status.json changes to commit."
exit 0
fi
git commit -m "chore(admob): refresh admob_status.json from app-ads verify"
git pull --rebase origin develop
git push origin HEAD:develop