Skip to content

Release: staging -> main (2026-07-22 03:48) #2157

Release: staging -> main (2026-07-22 03:48)

Release: staging -> main (2026-07-22 03:48) #2157

name: Enforce Staging Flow
on:
pull_request_target:
branches: [main]
types: [opened, reopened, edited, synchronize]
workflow_dispatch:
schedule:
- cron: '17 * * * *'
concurrency:
group: enforce-staging-flow-${{ github.event.pull_request.number || github.event_name }}
cancel-in-progress: true
permissions:
pull-requests: write
issues: write
contents: read
jobs:
require-staging-source:
name: require-staging-source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
- name: Enforce staging-first PR targets
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
COMMENT_ON_CHANGE: ${{ github.event_name == 'pull_request_target' && '1' || '0' }}
run: bash .github/scripts/enforce-staging-flow.sh