name: PR build (required check) # Every PR into `dev` runs the build check. Mirrors the monorepo's # .forgejo/workflows/pr-build.yml -- Forgejo has native branch protection + # auto-merge, so this workflow's only job is to BE the required status check; # there is no custom merge step here. # # One-time web UI setup (not expressible in this file): # Settings -> Branches -> add a protected-branch rule for `dev` # -> enable "Enable Status Check", list this job's name ("build") # -> merge style: squash # Then on a ready PR: "Auto merge when checks succeed". # # A native auto-merge is a real git merge, so it fires deploy-dev.yml's push # trigger naturally -- no separate deploy job needed here. on: pull_request: branches: [dev] concurrency: group: dev-pr-${{ github.event.pull_request.number }} cancel-in-progress: true jobs: build: name: build uses: ./.forgejo/workflows/build.yml