Skip to content

Commit

Permalink
CI: Upgrade actions/checkout@v3 to actions/checkout@v4、actions/setup-…
Browse files Browse the repository at this point in the history
…java@v3 to actions/setup-java@v4
  • Loading branch information
ForteScarlet committed Feb 3, 2024
1 parent 4f23aa9 commit 6dcadb1
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/kdoc.yml.bk
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

# setup Java
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
steps:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# setup Java
- name: Setup Java 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
Expand Down Expand Up @@ -67,11 +67,11 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# setup Java
- name: Setup java 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
Expand Down Expand Up @@ -103,14 +103,14 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

# setup Java
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
steps:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# Create gitHub release
# https://github.com/marketplace/actions/gh-release
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# setup Java
- name: Setup java 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
Expand Down Expand Up @@ -72,14 +72,14 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

# setup Java
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish-v4-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
steps:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# setup Java
- name: Setup Java 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
Expand Down Expand Up @@ -67,11 +67,11 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# setup Java
- name: Setup java 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
Expand Down Expand Up @@ -103,14 +103,14 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

# setup Java
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
steps:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# Create gitHub release
# https://github.com/marketplace/actions/gh-release
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-v4-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# setup Java
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
Expand Down Expand Up @@ -85,14 +85,14 @@ jobs:
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

# setup Java
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-v4-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
Expand Down

0 comments on commit 6dcadb1

Please sign in to comment.