-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.91 KB
/
Copy pathversion-currency.yml
File metadata and controls
62 lines (54 loc) · 1.91 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
58
59
60
61
62
# Staleness is measured, and the measurement is a ratchet.
#
# The 2026-08-31 audit found the box on an EOL Node, one app a framework
# generation behind on every axis, and an internal package pinned at a dead
# owner — none of it hidden, all of it unmeasured. Same lesson as the shared
# inventory: writing "stay current" down is what already failed. The report
# makes the trend visible; `--check` makes it binding.
name: Version currency
on:
schedule:
# Weekly. Majors ship on the timescale of quarters; daily would be noise,
# and noise gets muted.
- cron: '17 6 * * 1'
workflow_dispatch:
inputs:
strict:
description: 'Fail when the gap count has risen'
type: boolean
default: true
permissions:
contents: read
jobs:
currency:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- name: Self-test the detector first
run: node scripts/ci/test-version-currency.mjs
- name: Measure the fleet
env:
# Default token reads public repos only; private ones would land in
# UNCHECKED (visibly — never counted as clean). FLEET_READ_TOKEN
# covers them all.
GH_TOKEN: ${{ secrets.FLEET_READ_TOKEN || secrets.GITHUB_TOKEN }}
run: |
set -uo pipefail
{
echo '## Version currency'
echo
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
set +e
node scripts/ci/version-currency.mjs 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
set -e
echo '```' >> "$GITHUB_STEP_SUMMARY"
- name: The ratchet — gaps may fall, never rise
if: ${{ inputs.strict != false }}
env:
GH_TOKEN: ${{ secrets.FLEET_READ_TOKEN || secrets.GITHUB_TOKEN }}
run: node scripts/ci/version-currency.mjs --check