|
1 | | -name: build |
2 | | -on: [push, pull_request, workflow_dispatch] |
| 1 | +name: "Build" |
| 2 | +on: ["push", "pull_request", "workflow_dispatch"] |
| 3 | + |
| 4 | +permissions: |
| 5 | + contents: "read" |
3 | 6 |
|
4 | 7 | jobs: |
5 | 8 | build: |
6 | | - runs-on: ubuntu-24.04 |
7 | | - if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} |
| 9 | + runs-on: "ubuntu-24.04" |
| 10 | + if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}" |
8 | 11 | steps: |
9 | | - - name: Checkout Repository |
10 | | - uses: actions/checkout@v6 |
| 12 | + - name: "Checkout repository" |
| 13 | + uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0 |
11 | 14 | with: |
12 | 15 | persist-credentials: false |
13 | | - - name: Validate Gradle Wrapper |
14 | | - uses: gradle/actions/wrapper-validation@v5 |
15 | | - - name: Set up JDK 21 |
16 | | - uses: actions/setup-java@v5 |
| 16 | + - name: "Set up Gradle" |
| 17 | + uses: "gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2" # v5.0.0 |
| 18 | + - name: "Set up Java 25" |
| 19 | + uses: "actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165" # v5.0.0 |
17 | 20 | with: |
18 | | - distribution: temurin |
19 | | - java-version: 21 |
| 21 | + distribution: "temurin" |
| 22 | + java-version: 25 |
20 | 23 | check-latest: true |
21 | | - - name: Build with Gradle |
22 | | - run: ./gradlew build |
23 | | - - name: Upload Artifacts to GitHub |
24 | | - uses: actions/upload-artifact@v5 |
| 24 | + - name: "Build with Gradle" |
| 25 | + run: "./gradlew build" |
| 26 | + - name: "Upload artifacts to GitHub" |
| 27 | + uses: "actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4" # v5.0.0 |
25 | 28 | with: |
26 | | - name: Artifacts |
27 | | - path: build/libs/ |
| 29 | + name: "Artifacts" |
| 30 | + path: "build/libs/" |
0 commit comments