Wplace-BlueMarble/.github/workflows/pr-branch-check.yml
windbus 5f3d4bdfc6
Fix some issues with the README (#124)
* Added ignore files to stop popular code formatters from messing with the code style

* Change transform easing to 0s

* Added a translucent gray checkerboard render for #deface

* Added workflow to check what branch PR came from

* v0.81.0; Merge branch 'code' into main

* Update README.md

Fix some issues with the readme

* Added version Shield back

---------

Co-authored-by: SwingTheVine <swingthevine@gmail.com>
Co-authored-by: AloeSapling <aloesapling@gmail.com>
Co-authored-by: Endrik Tombak <littleendu@gmail.com>
Co-authored-by: KrunchyKrisp <m.damidavicius@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-12 20:30:55 -04:00

18 lines
496 B
YAML

name: Enforce allowed branches for PRs to main
on:
pull_request:
branches:
- main
jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check PR source branch
run: |
echo "Source branch: ${{ github.head_ref }}"
if [[ "${{ github.head_ref }}" != "documentation" && "${{ github.head_ref }}" != "code" ]]; then
echo "Error: PRs to main must come from 'documentation' or 'code' branches only."
exit 1
fi