From aed8d533a8057d42039a2b06f1dc85cb0ab315b9 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 8 Oct 2024 05:41:36 +0100 Subject: [PATCH] [BRANCH] upgrade CI actions because old versions are no longer supported (#5185) --- .github/workflows/auto-format-pr.yaml | 2 +- .github/workflows/build-frontend.yml | 6 +++--- .github/workflows/check-code-format.yml | 4 ++-- .github/workflows/check-license.yml | 4 ++-- .github/workflows/check-sql-pg-script.yml | 2 +- .github/workflows/check-sql-script.yml | 2 +- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/integration-test.yml | 8 ++++---- .github/workflows/publish-docker.yaml | 8 ++++---- .github/workflows/publish-snapshot.yml | 4 ++-- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/auto-format-pr.yaml b/.github/workflows/auto-format-pr.yaml index 722ef12b05..499a25f3b6 100644 --- a/.github/workflows/auto-format-pr.yaml +++ b/.github/workflows/auto-format-pr.yaml @@ -38,7 +38,7 @@ jobs: if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '8' distribution: 'adopt' diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml index a84a805d4b..4828a00ab7 100644 --- a/.github/workflows/build-frontend.yml +++ b/.github/workflows/build-frontend.yml @@ -30,11 +30,11 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -42,7 +42,7 @@ jobs: ${{ runner.os }}-node- - name: Set Up NodeJS ${{ matrix.node-version }} - uses: actions/setup-node@v2-beta + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/check-code-format.yml b/.github/workflows/check-code-format.yml index 0323eb9803..3e2d68f040 100644 --- a/.github/workflows/check-code-format.yml +++ b/.github/workflows/check-code-format.yml @@ -24,9 +24,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '8' distribution: 'adopt' diff --git a/.github/workflows/check-license.yml b/.github/workflows/check-license.yml index 2a6cf67f23..088aaf3830 100644 --- a/.github/workflows/check-license.yml +++ b/.github/workflows/check-license.yml @@ -24,9 +24,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '8' distribution: 'adopt' diff --git a/.github/workflows/check-sql-pg-script.yml b/.github/workflows/check-sql-pg-script.yml index 059fab5f11..ed7d84d7a1 100644 --- a/.github/workflows/check-sql-pg-script.yml +++ b/.github/workflows/check-sql-pg-script.yml @@ -35,7 +35,7 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Verify linkis init pg sql run: | diff --git a/.github/workflows/check-sql-script.yml b/.github/workflows/check-sql-script.yml index ec965372b1..43caa03cf9 100644 --- a/.github/workflows/check-sql-script.yml +++ b/.github/workflows/check-sql-script.yml @@ -32,7 +32,7 @@ jobs: options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Verify linkis init sql run: | diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3dac63672b..c163936975 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Set up JDK 1.8 @@ -43,7 +43,7 @@ jobs: java-version: 1.8 - name: Cache local Maven repository - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 5c97ec8229..355ef1f33f 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -75,24 +75,24 @@ jobs: df -h - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 submodules: true - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: 8 - name: Cache local Maven repository - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Set up Docker Buildx diff --git a/.github/workflows/publish-docker.yaml b/.github/workflows/publish-docker.yaml index 73e8d840b5..76e1565042 100644 --- a/.github/workflows/publish-docker.yaml +++ b/.github/workflows/publish-docker.yaml @@ -37,21 +37,21 @@ jobs: LINKIS_VERSION: 1.6.0 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: 8 - name: Cache local Maven repository - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Set up QEMU diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 93e34ab9c2..db6de687ee 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -32,11 +32,11 @@ jobs: - dev-1.6.0 steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch }} - name: Setup JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: 8