diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ccd94b..2964668 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,8 +9,8 @@ jobs: matrix: os: [ windows-latest, ubuntu-latest, macos-latest ] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: | @@ -18,7 +18,7 @@ jobs: 17 - name: Cache Dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Avoid caching generated artifacts path: | diff --git a/.github/workflows/deploy_to_maven_central.yml b/.github/workflows/deploy_to_maven_central.yml index 31adcc0..7844d71 100644 --- a/.github/workflows/deploy_to_maven_central.yml +++ b/.github/workflows/deploy_to_maven_central.yml @@ -20,11 +20,11 @@ jobs: TAG: ${{ steps.open-staging.outputs.TAG }} STAGING_REPOSITORY_ID: ${{ steps.open-staging.outputs.STAGING_REPOSITORY_ID }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.ref }} fetch-depth: 0 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: | @@ -37,15 +37,13 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Cache Dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Avoid caching generated artifacts path: | ~/.m2/repository/* !~/.m2/repository/com/github/cowwoc/pouch key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.OS }}-maven- - name: Configure Git User run: | @@ -81,10 +79,10 @@ jobs: needs: open-release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ needs.open-release.outputs.TAG }} - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: | @@ -97,15 +95,13 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Cache Dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Avoid caching generated artifacts path: | ~/.m2/repository/* !~/.m2/repository/com/github/cowwoc/pouch key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.OS }}-maven- - name: Deploy to Maven Central run: > @@ -116,10 +112,10 @@ jobs: needs: [ open-release, deploy ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ needs.open-release.outputs.TAG }} - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: | @@ -132,15 +128,13 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Cache Dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Avoid caching generated artifacts path: | ~/.m2/repository/* !~/.m2/repository/com/github/cowwoc/pouch key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.OS }}-maven- - name: Close staging repository run: > @@ -154,11 +148,11 @@ jobs: runs-on: ubuntu-latest if: ${{ always() && contains(needs.*.result, 'failure') }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.ref }} fetch-depth: 0 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: | @@ -171,15 +165,13 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Cache Dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Avoid caching generated artifacts path: | ~/.m2/repository/* !~/.m2/repository/com/github/cowwoc/pouch key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.OS }}-maven- - name: Configure Git User run: |