diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 98138539b..cf09ed2d9 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -14,7 +14,7 @@ jobs: # GITHUB_CONTEXT: ${{ toJson(github) }} # run: echo -e "$GITHUB_CONTEXT" - name: checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v6 with: # checkout the PR head and not the merge branch at refs/pull/:prNumber/merge # see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request @@ -24,17 +24,19 @@ jobs: # to figure out what version this is. optimizing this is left as a challenge to future committers fetch-depth: 0 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v5 + with: + distribution: temurin # Added for actions/setup-java v2+ compatibility with: java-version: 1.8 - name: create/restore gradle wrapper cache # see inspiration here - https://docs.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-gradle#caching-dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.gradle/wrapper key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - name: create/restore gradle cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.gradle/caches key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }} @@ -61,12 +63,14 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Set up latest LTS JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v5 + with: + distribution: temurin # Added for actions/setup-java v2+ compatibility with: java-version: 11 - name: Build with Gradle diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 95f4ff865..e8ec79721 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -10,22 +10,24 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v6 with: # bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag # to figure out what version this is. optimizing this is left as a challenge to future committers fetch-depth: 0 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v5 + with: + distribution: temurin # Added for actions/setup-java v2+ compatibility with: java-version: 1.8 - name: create/restore gradle wrapper cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.gradle/wrapper key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - name: create/restore gradle cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.gradle/caches key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }} diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index a19e27ed5..2a08282ee 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -11,13 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v6 with: # bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag # to figure out what version this is. optimizing this is left as a challenge to future committers fetch-depth: 0 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v5 + with: + distribution: temurin # Added for actions/setup-java v2+ compatibility with: java-version: 11 - name: Build with Gradle