mirror of
https://github.com/SwingTheVine/Wplace-BlueMarble.git
synced 2026-05-07 04:19:35 +00:00
* 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>
18 lines
496 B
YAML
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
|