Skip to content

Commit 3cec271

Browse files
committed
Add build-check job to decouple the required status check name
The "Build" status check required by branch protection should stay named "Build" regardless of how the build job's own shape changes (e.g. if it's later wrapped in a reusable workflow, which changes the reported check name). This trivial gate job guarantees something always reports under the literal name "Build" when the real build fails or is cancelled. Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
1 parent 74ad643 commit 3cec271

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/pull-request-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ jobs:
1818
- uses: spring-io/spring-security-actions/pr-build@4386090bf7852faa1d61782f981811441757dbb8 # main
1919
with:
2020
java-version: ${{ env.JAVA_VERSION }}
21+
build-check:
22+
name: Build
23+
needs: build
24+
if: failure() || cancelled()
25+
runs-on: ubuntu-latest
26+
steps:
27+
- run: exit 1

0 commit comments

Comments
 (0)