From 090c1cd3910444466f18439cde74d973160f87f5 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Mon, 15 Apr 2024 21:53:28 +0200 Subject: [PATCH] chore(deps): update all github actions deps --- .github/workflows/codeql-analysis.yml | 11 +++--- .github/workflows/docs.yml | 19 +++++------ .github/workflows/main.yml | 49 +++++++++++++-------------- 3 files changed, 38 insertions(+), 41 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c908b4d2c..87db03b34 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -42,7 +42,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -50,14 +50,15 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: 'temurin' java-version: 17 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -71,4 +72,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f8728f7c0..44a5aaa44 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,4 +1,4 @@ -name: Main +name: Docs on: push: @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Setup - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: '18' cache: 'npm' @@ -45,7 +45,7 @@ jobs: # Clone helm charts - name: Clone helm charts - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: helm path: tmp-helm @@ -58,15 +58,14 @@ jobs: # Deploy - name: Deploy - uses: peaceiris/actions-gh-pages@v2 - env: - PERSONAL_TOKEN: ${{ secrets.GITHUB_PERSONAL_TOKEN }} - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: docs/.vuepress/dist/ + uses: peaceiris/actions-gh-pages@v4 + with: + personal_token: ${{ secrets.GITHUB_PERSONAL_TOKEN }} + publish_dir: docs/.vuepress/dist/ # Slack - name: Slack notification - uses: 8398a7/action-slack@v2 + uses: 8398a7/action-slack@v3 if: always() with: status: ${{ job.status }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d4f0ea119..83d59eaa0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,48 +20,45 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - strategy: - matrix: - java: ['17'] - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Caches - name: Gradle cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}" restore-keys: | ${{ runner.os }}-gradle- - name: Gradle wrapper cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.gradle/wrapper - key: ${{ runner.os }}-wrapper-${{ hashFiles('**/*.gradle') }} + key: "${{ runner.os }}-wrapper-${{ hashFiles('**/*.gradle') }}" restore-keys: | ${{ runner.os }}-wrapper- - name: Npm cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + key: "${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}" restore-keys: | ${{ runner.os }}-node- - name: Node cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: node - key: ${{ runner.os }}-node-${{ hashFiles('**/*.gradle') }} + key: "${{ runner.os }}-node-${{ hashFiles('**/*.gradle') }}" restore-keys: | ${{ runner.os }}-node- # JDK - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: ${{ matrix.java }} + distribution: 'temurin' + java-version: 17 # Gradle check - name: Build with Gradle @@ -71,7 +68,7 @@ jobs: # Shadow Jar, Tar and Zip - name: Build jars and distribution archives - if: success() && matrix.java == '17' + if: success() run: ./gradlew shadowJar distTar distZip --no-daemon # Upload artifacts @@ -83,8 +80,8 @@ jobs: find build/distributions/akhq-*.zip -type f -exec cp "{}" build/dist/ ";" - name: Upload jar - uses: actions/upload-artifact@v1 - if: success() && matrix.java == '17' + uses: actions/upload-artifact@v4 + if: success() with: name: jar path: build/libs/ @@ -101,7 +98,7 @@ jobs: # GitHub Release - name: Create GitHub release - uses: "marvinpinto/action-automatic-releases@latest" + uses: marvinpinto/action-automatic-releases@latest if: startsWith(github.ref, 'refs/tags/') with: repo_token: "${{ secrets.GITHUB_TOKEN }}" @@ -113,22 +110,22 @@ jobs: # Docker - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v3 if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Login to GHCR - uses: docker/login-action@v1 + uses: docker/login-action@v3 if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') with: registry: ghcr.io @@ -137,7 +134,7 @@ jobs: - name: Extract metadata for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') with: images: | @@ -152,7 +149,7 @@ jobs: type=ref,event=pr - name: Publish to registries - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') with: push: true @@ -163,7 +160,7 @@ jobs: # Slack - name: Slack notification - uses: 8398a7/action-slack@v2 + uses: 8398a7/action-slack@v3 if: ${{ always() && env.SLACK_WEBHOOK_URL != 0 }} with: status: ${{ job.status }}