File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - 8.x
77 pull_request :
8- branches :
8+ branches :
99 - 8.x
1010 workflow_dispatch :
1111
3333 - uses : gradle/actions/setup-gradle@v4
3434 - run : ./gradlew build --info "-PtestGradleVersion=${{ matrix.gradle }}"
3535
36+ # Status check that is required in branch protection rules.
37+ build-status :
38+ needs :
39+ - build
40+ runs-on : ubuntu-24.04-arm
41+ if : always()
42+ steps :
43+ - name : Check
44+ run : |
45+ results=$(tr -d '\n' <<< '${{ toJSON(needs.*.result) }}')
46+ if ! grep -q -v -E '(failure|cancelled)' <<< "$results"; then
47+ echo "One or more required jobs failed"
48+ exit 1
49+ fi
50+ echo "All required jobs completed successfully."
51+
3652 publish-snapshot :
37- needs : build
53+ needs : build-status
3854 runs-on : ubuntu-latest
3955 if : github.repository == 'GradleUp/shadow' && github.ref == 'refs/heads/main'
4056 steps :
You can’t perform that action at this time.
0 commit comments