Skip to content

Commit

Permalink
chore(deps): update all github actions deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Apr 15, 2024
1 parent 2c1b073 commit 090c1cd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 41 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -42,22 +42,23 @@ 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.
# By default, queries listed here will override any specified in a config file.
# 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
Expand All @@ -71,4 +72,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
19 changes: 9 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main
name: Docs

on:
push:
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
49 changes: 23 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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/
Expand All @@ -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 }}"
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 090c1cd

Please sign in to comment.