Enligt server-config ci/jobbstorm-2026-11-10 §4–5:
- masterplan-lock.yml: push bara på main (pull_request täcker feature-grenar,
ingen dubbelkörning) och kanonisk grupp ${{ gitea.workflow }}-${{ gitea.ref }}.
Gruppen ${{ github.head_ref || github.ref }} slog inte ihop push- och
PR-körningen (refs/heads/<gren> mot <gren>), jobbstorm orsak C.
- ci.yml, security.yml: kanonisk grupp ${{ gitea.workflow }}-${{ gitea.ref }}.
Bara concurrency och push-filter ändras (workflow-diff-guard.py ok=true).
Grenskyddet kräver sedan bara "masterplan-lock / check (pull_request)",
som fortsatt rapporteras på varje PR (regel b).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
932 B
YAML
28 lines
932 B
YAML
name: masterplan-lock
|
|
|
|
# Fails the build if this repo's copy of the SIAX Non-Platform masterplan
|
|
# (PLAN/MASTERPLAN_INDEX.md) is deleted or its locked architecture
|
|
# principles are stripped out. Dependency-free (POSIX sh) so it needs no
|
|
# language toolchain -- HARD0 is still a P0-scaffold with no package.json.
|
|
# See scripts/check-masterplan-lock.sh and sax3l/siax-masterplan.
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
# N6 (server-config ci/jobbstorm-2026-11-10 §4): en ny commit på samma PR/gren avbryter den inaktuella körningen.
|
|
concurrency:
|
|
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: https://git.siax.io/actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # mirrored, immutable
|
|
- name: Masterplan lock check
|
|
run: sh scripts/check-masterplan-lock.sh
|