From becbbcafd45412aa13c9e1071a58f1382ee215f3 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Tue, 10 Sep 2024 18:52:58 +0300 Subject: [PATCH] Upgrade GitHub Actions to remove dependencies on Node 12/16 (#7459) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a followup to #7442. I didn't realize there were so many outdated actions. 🙂 This should update every remaining action with a Node 12/16 dependency. --- .github/workflows/cache.yml | 10 +++++----- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/comment.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/full.yml | 12 ++++++------ .github/workflows/helm.yml | 2 +- .github/workflows/main.yml | 14 +++++++------- .github/workflows/schedule.yml | 16 ++++++++-------- 8 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 9cfc7d8766cb..7f02ff48884c 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: server-cache-action with: path: /tmp/cvat_cache_server @@ -26,7 +26,7 @@ jobs: ${{ runner.os }}-build-server-${{ needs.get-sha.outputs.sha }} ${{ runner.os }}-build-server- - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: ui-cache-action with: path: /tmp/cvat_cache_ui @@ -36,10 +36,10 @@ jobs: ${{ runner.os }}-build-ui- - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Caching CVAT Server - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile @@ -47,7 +47,7 @@ jobs: cache-to: type=local,dest=/tmp/cvat_cache_server-new - name: Caching CVAT UI - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile.ui diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index fde0f93c4875..3f7cac7f664e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,7 +42,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -56,7 +56,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -69,4 +69,4 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index e2a478c9d660..7df8f8c02c76 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -29,7 +29,7 @@ jobs: - name: Verify that author of comment is collaborator if: steps.check-author.outputs.allow == '' - uses: actions/github-script@v3 + uses: actions/github-script@v7 with: script: | core.setFailed('User that send comment with /check command is not collaborator') diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4a7317287819..b52deddc3f58 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -59,7 +59,7 @@ jobs: - name: Deploy if: github.ref == 'refs/heads/develop' - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 5de1edf6febe..9502e7a0b185 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -29,19 +29,19 @@ jobs: ref: ${{ inputs.ref }} - name: CVAT server. Getting cache from the default branch - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/cvat_cache_server key: ${{ runner.os }}-build-server-${{ needs.search_cache.outputs.sha }} - name: CVAT UI. Getting cache from the default branch - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/cvat_cache_ui key: ${{ runner.os }}-build-ui-${{ needs.search_cache.outputs.sha }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Create artifact directories run: | @@ -50,7 +50,7 @@ jobs: mkdir /tmp/cvat_sdk - name: CVAT server. Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: cache-from: type=local,src=/tmp/cvat_cache_server context: . @@ -59,7 +59,7 @@ jobs: outputs: type=docker,dest=/tmp/cvat_server/image.tar - name: CVAT UI. Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: cache-from: type=local,src=/tmp/cvat_cache_ui context: . @@ -100,7 +100,7 @@ jobs: with: ref: ${{ inputs.ref }} - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.8' diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index ac7c8c3dce88..88865f278d47 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -42,7 +42,7 @@ jobs: echo -n "verifying images:" docker images - - uses: azure/setup-helm@v3 + - uses: azure/setup-helm@v4 with: version: 'v3.9.4' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 04900c9c69e3..75b200597f47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,19 +39,19 @@ jobs: run: ./dev/check_changelog_fragments.py - name: CVAT server. Getting cache from the default branch - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/cvat_cache_server key: ${{ runner.os }}-build-server-${{ needs.search_cache.outputs.sha }} - name: CVAT UI. Getting cache from the default branch - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/cvat_cache_ui key: ${{ runner.os }}-build-ui-${{ needs.search_cache.outputs.sha }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Create artifact directories run: | @@ -60,7 +60,7 @@ jobs: mkdir /tmp/cvat_sdk - name: CVAT server. Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: build-args: | "COVERAGE_PROCESS_START=.coveragerc" @@ -76,7 +76,7 @@ jobs: yarn run coverage - name: CVAT UI. Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: cache-from: type=local,src=/tmp/cvat_cache_ui context: . @@ -136,7 +136,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.8' @@ -450,6 +450,6 @@ jobs: name: coverage_results - name: Upload coverage reports to Codecov with GitHub Action - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index 7fc63bf8dcae..d8e514cbb449 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -55,13 +55,13 @@ jobs: password: ${{ secrets.DOCKERHUB_CI_TOKEN }} - name: CVAT server. Getting cache from the default branch - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/cvat_cache_server key: ${{ runner.os }}-build-server-${{ needs.search_cache.outputs.sha }} - name: CVAT UI. Getting cache from the default branch - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/cvat_cache_ui key: ${{ runner.os }}-build-ui-${{ needs.search_cache.outputs.sha }} @@ -83,10 +83,10 @@ jobs: type=raw,value=nightly - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: CVAT server. Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: cache-from: type=local,src=/tmp/cvat_cache_server context: . @@ -96,7 +96,7 @@ jobs: labels: ${{ steps.meta-server.outputs.labels }} - name: CVAT UI. Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: cache-from: type=local,src=/tmp/cvat_cache_ui context: . @@ -111,18 +111,18 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.8' - name: Getting CVAT UI cache from the default branch - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/cvat_cache_ui key: ${{ runner.os }}-build-ui-${{ needs.search_cache.outputs.sha }} - name: Building CVAT UI image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile.ui