From d94b2938b8b32db226a44859e222d2b328c1e993 Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Tue, 27 Aug 2024 10:45:13 +0200 Subject: [PATCH] ci: update actions to latest versions --- .github/workflows/build.yml | 4 ++-- .github/workflows/docker.yml | 8 ++++---- .github/workflows/release.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a21f7b5..0a20f169 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 21 uses: actions/setup-java@v4 with: @@ -22,7 +22,7 @@ jobs: distribution: 'temurin' # Step that caches and restores maven dependencies - name: Cache maven dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8478f9d7..14ae8867 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,20 +14,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 if: ${{ github.repository == 'philippvk/playforia-minigolf' && github.ref == 'refs/heads/master' && github.event_name == 'push' }} with: registry: ${{ secrets.DOCKER_REGISTRY }} username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: tags: playforia-minigolf:latest - name: Push Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 if: ${{ github.repository == 'philippvk/playforia-minigolf' && github.ref == 'refs/heads/master' && github.event_name == 'push' }} with: push: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4737b92b..5e1d0e35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Generate changelog id: changelog - uses: metcalfc/changelog-generator@v0.4.3 + uses: metcalfc/changelog-generator@v4.3.1 with: myToken: ${{ secrets.GITHUB_TOKEN }} - name: Set up JDK 21 @@ -25,7 +25,7 @@ jobs: distribution: 'temurin' # Step that caches and restores maven dependencies - name: Cache maven dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}