commit
6c3d8b164f
|
|
@ -1,19 +1,19 @@
|
|||
# Always runs on PRs so required status checks complete when path-filtered
|
||||
# workflows (.github/workflows/dotnet.yml, gdscript.yml) are skipped.
|
||||
# In GitHub: Settings → Rules / Branch protection → require “PR gate / build”
|
||||
# (or drop a stale required check that never runs on docs-only PRs).
|
||||
# Path-filtered CI may skip; this always runs. Push includes main so the check
|
||||
# runs on the default branch — GitHub only lists a workflow under “required status
|
||||
# checks” after it has completed on the default branch at least once.
|
||||
name: PR gate
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
# pull_request does not run on "push branch only" — only after a PR exists (or is synced).
|
||||
push:
|
||||
branches-ignore:
|
||||
- main
|
||||
branches:
|
||||
- "**"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
# Branch-protection search matches job name, not workflow title — keep unique.
|
||||
name: pr-gate
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
|||
Loading…
Reference in New Issue