infra: CI 자동 검증 강화 (정책 레지스트리 + TASK-REQ 매핑) (#330) #347
@@ -28,6 +28,9 @@ jobs:
|
|||||||
run: python3 scripts/session_handover_check.py --strict
|
run: python3 scripts/session_handover_check.py --strict
|
||||||
|
|
||||||
- name: Validate governance assets
|
- name: Validate governance assets
|
||||||
|
env:
|
||||||
|
GOVERNANCE_PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
|
GOVERNANCE_PR_BODY: ${{ github.event.pull_request.body }}
|
||||||
run: |
|
run: |
|
||||||
RANGE=""
|
RANGE=""
|
||||||
if [ "${{ github.event_name }}" = "pull_request" ] && [ -n "${{ github.event.pull_request.base.sha }}" ]; then
|
if [ "${{ github.event_name }}" = "pull_request" ] && [ -n "${{ github.event.pull_request.base.sha }}" ]; then
|
||||||
|
|||||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -29,11 +29,13 @@ jobs:
|
|||||||
GOVERNANCE_PR_TITLE: ${{ github.event.pull_request.title }}
|
GOVERNANCE_PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
GOVERNANCE_PR_BODY: ${{ github.event.pull_request.body }}
|
GOVERNANCE_PR_BODY: ${{ github.event.pull_request.body }}
|
||||||
run: |
|
run: |
|
||||||
|
RANGE=""
|
||||||
if [ "${{ github.event_name }}" = "pull_request" ]; then
|
if [ "${{ github.event_name }}" = "pull_request" ]; then
|
||||||
RANGE="${{ github.event.pull_request.base.sha }}...${{ github.sha }}"
|
RANGE="${{ github.event.pull_request.base.sha }}...${{ github.sha }}"
|
||||||
python3 scripts/validate_governance_assets.py "$RANGE"
|
elif [ "${{ github.event_name }}" = "push" ] && [ "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]; then
|
||||||
elif [ "${{ github.event_name }}" = "push" ]; then
|
|
||||||
RANGE="${{ github.event.before }}...${{ github.sha }}"
|
RANGE="${{ github.event.before }}...${{ github.sha }}"
|
||||||
|
fi
|
||||||
|
if [ -n "$RANGE" ]; then
|
||||||
python3 scripts/validate_governance_assets.py "$RANGE"
|
python3 scripts/validate_governance_assets.py "$RANGE"
|
||||||
else
|
else
|
||||||
python3 scripts/validate_governance_assets.py
|
python3 scripts/validate_governance_assets.py
|
||||||
|
|||||||
Reference in New Issue
Block a user