58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
name: End-of-life tables
|
|
|
|
# Compares the bundled end-of-life tables (compliance-agent/data/eol/: Yocto
|
|
# releases, .NET target frameworks, the oldest patched Android and iOS
|
|
# releases) with endoflife.date once a week. A difference (a new release, a
|
|
# changed end-of-life date) opens one issue, or updates the open one, labelled
|
|
# "eol-tables"; the tables themselves are updated by hand after checking the
|
|
# vendor's page. A separate workflow, so it never fails main CI.
|
|
#
|
|
# The issue is written with NIGHTLY_ALERT_TOKEN, the token the nightly
|
|
# regression already uses for its alert issue (issue write on this repo).
|
|
# Without it the differences are only printed in the log.
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 5 * * 1' # Mondays, 5 AM UTC
|
|
workflow_dispatch:
|
|
inputs:
|
|
dry_run:
|
|
description: "Print the differences only, write no issue"
|
|
type: boolean
|
|
default: false
|
|
|
|
concurrency:
|
|
group: eol-tables
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
name: Compare with endoflife.date
|
|
runs-on: docker
|
|
container:
|
|
image: python:3.12-alpine
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
apk add --no-cache git
|
|
git init
|
|
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
|
git fetch --depth=1 origin "${GITHUB_SHA}"
|
|
git checkout FETCH_HEAD
|
|
|
|
- name: Test the check
|
|
run: python3 -I -m unittest discover -s scripts -p "test_check_eol_tables.py"
|
|
|
|
- name: Compare and file the issue
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.NIGHTLY_ALERT_TOKEN }}
|
|
GITEA_API: ${{ github.server_url }}/api/v1
|
|
GITEA_REPO: ${{ github.repository }}
|
|
DRY_RUN: ${{ inputs.dry_run }}
|
|
run: |
|
|
if [ "$DRY_RUN" = "true" ]; then
|
|
python3 -I scripts/check-eol-tables.py --dry-run
|
|
else
|
|
python3 -I scripts/check-eol-tables.py
|
|
fi
|