Skip to content

Commit

Permalink
ci: update ci action versions to make GitHub happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dragove committed Feb 18, 2024
1 parent 33edc35 commit 5df1fa8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
Expand Down Expand Up @@ -71,31 +71,31 @@ jobs:
run: ./gradlew generateSwaggerCode

- name: upload openapi
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: openapi-${{ steps.version.outputs.version }}
path: ./build/docs/swagger.json

- name: upload cpp client
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cpp-client
path: ./build/clients/cpp-client/*

- name: upload csharp client
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: csharp-client
path: ./build/clients/csharp-client/*

- name: upload rust client
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: rust-client
path: ./build/clients/rust-client/*

- name: upload ts client
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ts-client
path: ./build/clients/ts-fetch-client/*
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
Expand Down Expand Up @@ -65,15 +65,15 @@ jobs:
path: ./build/libs/*

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -84,7 +84,7 @@ jobs:
type=raw,value={{branch}}-{{sha}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,33 @@ jobs:
runs-on: ubuntu-latest
steps:
#checkout代码
- uses: actions/checkout@v3
- uses: actions/checkout@v4
#安装graalvm
- name: 安装graalvm
uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '17'
components: 'native-image'
java-version: '21'
#查看版本信息
- name: 查看版本信息
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
gu --version
native-image --version
#校验Gradle wrapper
- name: 校验Gradle wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v2
#使用Gradle编译项目
- name: 使用Gradle编译项目
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3
with:
arguments: bootBuildImage

# 登录docker仓库
- name: 登录docker仓库 ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit 5df1fa8

Please sign in to comment.