Skip to content

Commit 3913bb5

Browse files
committed
Sync workflow setup with other Java repos
1 parent caa12ec commit 3913bb5

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
gradle-wrapper-validation:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19-
20-
- uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0
21-
2215
build:
2316
runs-on: ${{ matrix.os }}
2417
strategy:
@@ -52,12 +45,9 @@ jobs:
5245

5346
required-status-check:
5447
needs:
55-
- gradle-wrapper-validation
5648
- build
5749
runs-on: ubuntu-latest
5850
if: always()
5951
steps:
60-
- if: |
61-
needs.gradle-wrapper-validation.result != 'success' ||
62-
needs.build.result != 'success'
52+
- if: needs.build.result != 'success'
6353
run: exit 1
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Gradle wrapper validation
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
gradle-wrapper-validation:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
16+
# this needs to be in its own workflow in order to make OSSF scorecard happy
17+
- uses: gradle/actions/wrapper-validation@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1

0 commit comments

Comments
 (0)