Skip to content

Commit

Permalink
github action中使用checkout v4替换旧版本 (#490)
Browse files Browse the repository at this point in the history
### What problem were solved in this pull request?

Problem:
github action 中checkout代码的action很多使用的是v2,有时候github会发出告警。

### What is changed and how it works?
使用最新版本 checkout@v4替换
  • Loading branch information
hnwyllmm authored Nov 26, 2024
1 parent 992f017 commit 6079097
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Init
shell: bash
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
brew install bison
- name: Checkout repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
clang-format-checking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: RafikFarhad/clang-format-github-action@v3
with:
# sources 和 excludes 最终生成的find查找文件的命令大概是这样的
# find . -type f ! -wholename "./src/observer/sql/parser/lex_sql.*" \( -wholename "./**/*.h" -o -wholename "./**/*.cpp" \)
sources: "**/*.h,**/*.cpp,src/**/*.h,src/**/*.cpp"
excludes: "src/observer/sql/parser/lex_sql.*,src/observer/sql/parser/yacc_sql.*,deps/3rd/**/*.cpp,deps/3rd/**/*.h"
style: "file"
style: "file"
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
python3 -m pip install -r ./docs/requirements.txt
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/pulish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Log in to Docker hub
uses: docker/login-action@v3
Expand All @@ -35,9 +35,6 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: run basic test
shell: bash
Expand All @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: install sysbench and mariadb-client
shell: bash
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: build observer and benchmark
shell: bash
Expand All @@ -109,7 +109,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: build
shell: bash
Expand Down

0 comments on commit 6079097

Please sign in to comment.