mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
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:
1 parent
03443fe898
commit
78900a24fb
1 file changed
+5
-1
@@ -1,6 +1,7 @@
|
|||||||
name: Verify
|
name: Verify
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [staging, main]
|
branches: [staging, main]
|
||||||
@@ -11,10 +12,10 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
branch-policy:
|
branch-policy:
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Enforce promotion flow
|
- name: Enforce promotion flow
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
env:
|
env:
|
||||||
BASE_BRANCH: ${{ github.base_ref }}
|
BASE_BRANCH: ${{ github.base_ref }}
|
||||||
HEAD_BRANCH: ${{ github.head_ref }}
|
HEAD_BRANCH: ${{ github.head_ref }}
|
||||||
@@ -31,6 +32,9 @@ jobs:
|
|||||||
echo "Feature pull requests target staging; promotions target main" >&2
|
echo "Feature pull requests target staging; promotions target main" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
- name: Confirm direct verification
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
run: echo "Direct branch verification requested for $GITHUB_SHA"
|
||||||
|
|
||||||
static:
|
static:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in new issue
Block a user