-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.46 KB
/
validate-version-alignment.yml
File metadata and controls
48 lines (43 loc) · 1.46 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
name: Version Alignment Check
# Blocks merges that would leave pyproject.toml / axonflow/_version.py
# out of sync with CHANGELOG.md's most recent released section. The
# invariant on main:
# pyproject.toml::version
# == axonflow/_version.py::__version__
# == first ## [X.Y.Z] section in CHANGELOG
#
# When it's time to ship a new release, a single release-prep PR
# renames [Unreleased] → [X.Y.Z] - YYYY-MM-DD AND bumps both manifest
# files in the same commit, so this gate always sees them together.
#
# See .github/scripts/validate-version-alignment.sh for the script.
on:
pull_request:
branches: [main]
paths:
- 'CHANGELOG.md'
- 'pyproject.toml'
- 'axonflow/_version.py'
- '.github/scripts/validate-version-alignment.sh'
- '.github/workflows/validate-version-alignment.yml'
push:
branches: [main]
paths:
- 'CHANGELOG.md'
- 'pyproject.toml'
- 'axonflow/_version.py'
- '.github/scripts/validate-version-alignment.sh'
- '.github/workflows/validate-version-alignment.yml'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
validate-versions:
name: Validate Version Alignment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check version alignment
run: ./.github/scripts/validate-version-alignment.sh