From 29f11d7b7e44ec736f092906b72f1ffe2cf66028 Mon Sep 17 00:00:00 2001 From: tison Date: Sun, 18 Feb 2024 23:20:26 +0800 Subject: [PATCH] ci: upgrade actions to avoid node16 deprecation warning (#3317) * ci: upgrade actions to avoid node16 deprecantion warning Signed-off-by: tison * try delete size label action Signed-off-by: tison * one more action Signed-off-by: tison --------- Signed-off-by: tison --- .../build-windows-artifacts/action.yml | 4 +-- .github/workflows/apidoc.yml | 4 +-- .github/workflows/dev-build.yml | 18 +++++------ .github/workflows/develop.yml | 30 +++++++++---------- .github/workflows/doc-issue.yml | 4 +-- .github/workflows/doc-label.yml | 4 +-- .github/workflows/docs.yml | 2 +- .github/workflows/license.yaml | 4 +-- .github/workflows/nightly-build.yml | 14 ++++----- .github/workflows/nightly-ci.yml | 10 +++---- .github/workflows/nightly-funtional-tests.yml | 2 +- .github/workflows/pr-title-checker.yml | 4 +-- .../workflows/release-dev-builder-images.yaml | 2 +- .github/workflows/release.yml | 20 ++++++------- .github/workflows/size-label.yml | 25 ---------------- 15 files changed, 61 insertions(+), 86 deletions(-) delete mode 100644 .github/workflows/size-label.yml diff --git a/.github/actions/build-windows-artifacts/action.yml b/.github/actions/build-windows-artifacts/action.yml index 87eb3379dc..879473aa7d 100644 --- a/.github/actions/build-windows-artifacts/action.yml +++ b/.github/actions/build-windows-artifacts/action.yml @@ -25,7 +25,7 @@ inputs: runs: using: composite steps: - - uses: arduino/setup-protoc@v1 + - uses: arduino/setup-protoc@v3 - name: Install rust toolchain uses: dtolnay/rust-toolchain@master @@ -38,7 +38,7 @@ runs: uses: Swatinem/rust-cache@v2 - name: Install Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' diff --git a/.github/workflows/apidoc.yml b/.github/workflows/apidoc.yml index f3511feae2..06e845f630 100644 --- a/.github/workflows/apidoc.yml +++ b/.github/workflows/apidoc.yml @@ -19,8 +19,8 @@ jobs: apidoc: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: dtolnay/rust-toolchain@master diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 66ccfa6922..6fb8ae93a7 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -101,7 +101,7 @@ jobs: version: ${{ steps.create-version.outputs.version }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -155,12 +155,12 @@ jobs: runs-on: ${{ needs.allocate-runners.outputs.linux-amd64-runner }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Checkout greptimedb - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} ref: ${{ inputs.commit }} @@ -184,12 +184,12 @@ jobs: runs-on: ${{ needs.allocate-runners.outputs.linux-arm64-runner }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Checkout greptimedb - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} ref: ${{ inputs.commit }} @@ -216,7 +216,7 @@ jobs: outputs: build-result: ${{ steps.set-build-result.outputs.build-result }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -247,7 +247,7 @@ jobs: runs-on: ubuntu-20.04 continue-on-error: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -281,7 +281,7 @@ jobs: ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -306,7 +306,7 @@ jobs: ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index a81ae47940..b5d2715865 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -37,7 +37,7 @@ jobs: name: Spell Check with Typos runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: crate-ci/typos@v1.13.10 check: @@ -48,8 +48,8 @@ jobs: os: [ windows-latest, ubuntu-20.04 ] timeout-minutes: 60 steps: - - uses: actions/checkout@v3 - - uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: dtolnay/rust-toolchain@master @@ -69,7 +69,7 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 60 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master with: toolchain: stable @@ -91,8 +91,8 @@ jobs: os: [ ubuntu-20.04 ] timeout-minutes: 60 steps: - - uses: actions/checkout@v3 - - uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_TOOLCHAIN }} @@ -126,7 +126,7 @@ jobs: os: [ ubuntu-20.04 ] timeout-minutes: 60 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download pre-built binaries uses: actions/download-artifact@v4 with: @@ -154,7 +154,7 @@ jobs: os: [ ubuntu-20.04 ] timeout-minutes: 60 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download pre-built binaries uses: actions/download-artifact@v4 with: @@ -181,8 +181,8 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 60 steps: - - uses: actions/checkout@v3 - - uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: dtolnay/rust-toolchain@master @@ -202,8 +202,8 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 60 steps: - - uses: actions/checkout@v3 - - uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: dtolnay/rust-toolchain@master @@ -224,8 +224,8 @@ jobs: runs-on: ubuntu-20.04-8-cores timeout-minutes: 60 steps: - - uses: actions/checkout@v3 - - uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: KyleMayes/install-llvm-action@v1 @@ -246,7 +246,7 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Install Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install PyArrow Package diff --git a/.github/workflows/doc-issue.yml b/.github/workflows/doc-issue.yml index da8fc8a40c..4b366e217f 100644 --- a/.github/workflows/doc-issue.yml +++ b/.github/workflows/doc-issue.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: create an issue in doc repo - uses: dacbd/create-issue-action@main + uses: dacbd/create-issue-action@v1.2.1 with: owner: GreptimeTeam repo: docs @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: create an issue in cloud repo - uses: dacbd/create-issue-action@main + uses: dacbd/create-issue-action@v1.2.1 with: owner: GreptimeTeam repo: greptimedb-cloud diff --git a/.github/workflows/doc-label.yml b/.github/workflows/doc-label.yml index 18a8c26444..9bea27af19 100644 --- a/.github/workflows/doc-label.yml +++ b/.github/workflows/doc-label.yml @@ -12,14 +12,14 @@ jobs: if: ${{ github.repository == 'GreptimeTeam/greptimedb' }} runs-on: ubuntu-latest steps: - - uses: github/issue-labeler@v3.3 + - uses: github/issue-labeler@v3.4 with: configuration-path: .github/doc-label-config.yml enable-versioned-regex: false repo-token: ${{ secrets.GITHUB_TOKEN }} sync-labels: 1 - name: create an issue in doc repo - uses: dacbd/create-issue-action@main + uses: dacbd/create-issue-action@v1.2.1 if: ${{ github.event.action == 'opened' && contains(github.event.pull_request.body, '- [ ] This PR does not require documentation updates.') }} with: owner: GreptimeTeam diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cc059cc287..bdda82fd9a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,7 +33,7 @@ jobs: name: Spell Check with Typos runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: crate-ci/typos@v1.13.10 check: diff --git a/.github/workflows/license.yaml b/.github/workflows/license.yaml index 286cd15a15..f45624206f 100644 --- a/.github/workflows/license.yaml +++ b/.github/workflows/license.yaml @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-20.04 name: license-header-check steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Check License Header - uses: korandoru/hawkeye@v3 + uses: korandoru/hawkeye@v4 diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index abe1cba334..562323ce76 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -85,7 +85,7 @@ jobs: version: ${{ steps.create-version.outputs.version }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -137,7 +137,7 @@ jobs: ] runs-on: ${{ needs.allocate-runners.outputs.linux-amd64-runner }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -156,7 +156,7 @@ jobs: ] runs-on: ${{ needs.allocate-runners.outputs.linux-arm64-runner }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -179,7 +179,7 @@ jobs: outputs: nightly-build-result: ${{ steps.set-nightly-build-result.outputs.nightly-build-result }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -211,7 +211,7 @@ jobs: # The ACR have daily sync with DockerHub, so don't worry about the image not being updated. continue-on-error: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -245,7 +245,7 @@ jobs: ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -270,7 +270,7 @@ jobs: ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index 38be4294ee..a11073741f 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -24,8 +24,8 @@ jobs: os: [ windows-latest-8-cores ] timeout-minutes: 60 steps: - - uses: actions/checkout@v4.1.0 - - uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: dtolnay/rust-toolchain@master @@ -57,8 +57,8 @@ jobs: timeout-minutes: 60 steps: - run: git config --global core.autocrlf false - - uses: actions/checkout@v4.1.0 - - uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install Rust toolchain @@ -71,7 +71,7 @@ jobs: - name: Install Cargo Nextest uses: taiki-e/install-action@nextest - name: Install Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install PyArrow Package diff --git a/.github/workflows/nightly-funtional-tests.yml b/.github/workflows/nightly-funtional-tests.yml index 5c17c27ee7..b4e7ebf927 100644 --- a/.github/workflows/nightly-funtional-tests.yml +++ b/.github/workflows/nightly-funtional-tests.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml index 36506c91e9..50723f9137 100644 --- a/.github/workflows/pr-title-checker.yml +++ b/.github/workflows/pr-title-checker.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 10 steps: - - uses: thehanimo/pr-title-checker@v1.3.4 + - uses: thehanimo/pr-title-checker@v1.4.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} pass_on_octokit_error: false @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 10 steps: - - uses: thehanimo/pr-title-checker@v1.3.4 + - uses: thehanimo/pr-title-checker@v1.4.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} pass_on_octokit_error: false diff --git a/.github/workflows/release-dev-builder-images.yaml b/.github/workflows/release-dev-builder-images.yaml index b44b60dae1..aa3da561db 100644 --- a/.github/workflows/release-dev-builder-images.yaml +++ b/.github/workflows/release-dev-builder-images.yaml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-20.04-16-cores steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e48f0a204..34825daa0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -114,7 +114,7 @@ jobs: version: ${{ steps.create-version.outputs.version }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -168,7 +168,7 @@ jobs: ] runs-on: ${{ needs.allocate-runners.outputs.linux-amd64-runner }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -187,7 +187,7 @@ jobs: ] runs-on: ${{ needs.allocate-runners.outputs.linux-arm64-runner }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -226,7 +226,7 @@ jobs: ] if: ${{ inputs.build_macos_artifacts || github.event_name == 'push' || github.event_name == 'schedule' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -267,7 +267,7 @@ jobs: steps: - run: git config --global core.autocrlf false - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -296,7 +296,7 @@ jobs: ] runs-on: ubuntu-2004-16-cores steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -331,7 +331,7 @@ jobs: # The ACR have daily sync with DockerHub, so don't worry about the image not being updated. continue-on-error: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -367,7 +367,7 @@ jobs: ] runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -390,7 +390,7 @@ jobs: ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -415,7 +415,7 @@ jobs: ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml deleted file mode 100644 index fd3d5097fa..0000000000 --- a/.github/workflows/size-label.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: size-labeler - -on: [pull_request_target] - -jobs: - labeler: - runs-on: ubuntu-latest - name: Label the PR size - permissions: - issues: write - pull-requests: write - steps: - - uses: codelytv/pr-size-labeler@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - s_label: 'Size: S' - s_max_size: '100' - m_label: 'Size: M' - m_max_size: '500' - l_label: 'Size: L' - l_max_size: '1000' - xl_label: 'Size: XL' - fail_if_xl: 'false' - message_if_xl: "" - files_to_ignore: 'Cargo.lock'