ci(staging): enable direct verification

Allow agents to run required checks manually against an exact commit before pushing it directly to staging, while retaining protected status checks.
This commit is contained in:
jjbrunton committed 2026-08-28 20:41:18 +01:00
1 parent 03443fe898
commit 78900a24fb
1 file changed
+5 -1
+5 -1
View File
@@ -1,6 +1,7 @@
name: Verify
on:
workflow_dispatch:
pull_request:
push:
branches: [staging, main]
@@ -11,10 +12,10 @@ concurrency:
jobs:
branch-policy:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Enforce promotion flow
if: github.event_name == 'pull_request'
env:
BASE_BRANCH: ${{ github.base_ref }}
HEAD_BRANCH: ${{ github.head_ref }}
@@ -31,6 +32,9 @@ jobs:
echo "Feature pull requests target staging; promotions target main" >&2
exit 1
fi
- name: Confirm direct verification
if: github.event_name != 'pull_request'
run: echo "Direct branch verification requested for $GITHUB_SHA"
static:
runs-on: ubuntu-latest