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 5
5
branches :
6
6
- 8.x
7
7
pull_request :
8
- branches :
8
+ branches :
9
9
- 8.x
10
10
workflow_dispatch :
11
11
33
33
- uses : gradle/actions/setup-gradle@v4
34
34
- run : ./gradlew build --info "-PtestGradleVersion=${{ matrix.gradle }}"
35
35
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
+
36
52
publish-snapshot :
37
- needs : build
53
+ needs : build-status
38
54
runs-on : ubuntu-latest
39
55
if : github.repository == 'GradleUp/shadow' && github.ref == 'refs/heads/main'
40
56
steps :
You can’t perform that action at this time.
0 commit comments