Files
online-energieausweis/.github/workflows/enforce-pr-source.yml
2025-06-11 13:15:42 -05:00

20 lines
466 B
YAML

name: Enforce PR Source
on:
pull_request:
branches:
- main
jobs:
check-pr-source:
runs-on: ubuntu-latest
steps:
- name: Enforce only staging → main
run: |
echo "head_ref: ${{ github.head_ref }}"
echo "base_ref: ${{ github.base_ref }}"
if [[ "${{ github.head_ref }}" != "staging" ]]; then
echo "ERROR: Only 'staging' branch may create PRs into 'main'!"
exit 1
fi