1414 # GITHUB_CONTEXT: ${{ toJson(github) }}
1515 # run: echo -e "$GITHUB_CONTEXT"
1616 - name : checkout code
17- uses : actions/checkout@v2
17+ uses : actions/checkout@v6
1818 with :
1919 # checkout the PR head and not the merge branch at refs/pull/:prNumber/merge
2020 # see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
@@ -24,17 +24,19 @@ jobs:
2424 # to figure out what version this is. optimizing this is left as a challenge to future committers
2525 fetch-depth : 0
2626 - name : Set up JDK 1.8
27- uses : actions/setup-java@v1
27+ uses : actions/setup-java@v5
28+ with :
29+ distribution : temurin # Added for actions/setup-java v2+ compatibility
2830 with :
2931 java-version : 1.8
3032 - name : create/restore gradle wrapper cache
3133 # see inspiration here - https://docs.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-gradle#caching-dependencies
32- uses : actions/cache@v4
34+ uses : actions/cache@v5
3335 with :
3436 path : ~/.gradle/wrapper
3537 key : gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
3638 - name : create/restore gradle cache
37- uses : actions/cache@v4
39+ uses : actions/cache@v5
3840 with :
3941 path : ~/.gradle/caches
4042 key : gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}
@@ -61,12 +63,14 @@ jobs:
6163 runs-on : ubuntu-latest
6264 steps :
6365 - name : checkout code
64- uses : actions/checkout@v2
66+ uses : actions/checkout@v6
6567 with :
6668 ref : ${{ github.event.pull_request.head.sha }}
6769 fetch-depth : 0
6870 - name : Set up latest LTS JDK
69- uses : actions/setup-java@v1
71+ uses : actions/setup-java@v5
72+ with :
73+ distribution : temurin # Added for actions/setup-java v2+ compatibility
7074 with :
7175 java-version : 11
7276 - name : Build with Gradle
0 commit comments