-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 2.29 KB
/
Copy pathdrift.yml
File metadata and controls
57 lines (50 loc) · 2.29 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Drift
# Daily HTTP HEAD probe of every SourceForge installer URL the action's
# URL builder (src/download.ts) can construct for a supported (OS x version)
# combination. Fast-fails on URL drift so it is caught before the weekly
# full-matrix self-CI cron (ci.yml) or downstream consumers notice.
#
# macOS x R2022a is excluded — the upstream DMG is x86_64-only and modern
# macos-latest runners are arm64, so the action does not support that cell
# (matches ci.yml's exclusion).
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
url-liveness:
name: URL liveness
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Probe SourceForge installer URLs
shell: bash
# URL templates mirror src/download.ts:72-92. Keep in sync if the
# builder changes.
run: |
set -uo pipefail
urls=(
"https://sourceforge.net/projects/gmat/files/GMAT/GMAT-R2022a/gmat-ubuntu-x64-R2022a.tar.gz/download"
"https://sourceforge.net/projects/gmat/files/GMAT/GMAT-R2025a/gmat-ubuntu-x64-R2025a.tar.gz/download"
"https://sourceforge.net/projects/gmat/files/GMAT/GMAT-R2026a/gmat-ubuntu-x64-R2026a.tar.gz/download"
"https://sourceforge.net/projects/gmat/files/GMAT/GMAT-R2022a/gmat-win-R2022a.zip/download"
"https://sourceforge.net/projects/gmat/files/GMAT/GMAT-R2025a/gmat-win-R2025a.zip/download"
"https://sourceforge.net/projects/gmat/files/GMAT/GMAT-R2026a/gmat-win-R2026a.zip/download"
"https://sourceforge.net/projects/gmat/files/GMAT/GMAT-R2025a/gmat-mac-R2025a-signed.dmg/download"
"https://sourceforge.net/projects/gmat/files/GMAT/GMAT-R2026a/gmat-mac-x64-R2026a-signed.dmg/download"
)
fail=0
printf '%-7s %s\n' 'STATUS' 'URL'
for url in "${urls[@]}"; do
status=$(curl -ILso /dev/null --max-time 30 -w '%{http_code}' "$url" || echo 'ERR')
printf '%-7s %s\n' "$status" "$url"
if [[ "$status" != 2* ]]; then
fail=1
fi
done
if (( fail )); then
echo "::error::One or more SourceForge installer URLs are unreachable; investigate before downstream consumers hit it"
exit 1
fi