From a7dbbb1ea711f0901997edd2f545c0342bdfb5e8 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Tue, 10 Sep 2024 16:37:05 +0200 Subject: [PATCH] chore(ci): Update deprecated github actions (#813) * chore(ci): Bump upload-artifact to v4 * Update other deprecated actions --- .github/workflows/actions/test-and-build/action.yaml | 4 ++-- .github/workflows/codeql.yml | 8 ++++---- .github/workflows/draft-release.yaml | 4 ++-- .github/workflows/publish-release.yaml | 2 +- .github/workflows/rebuild-changelog.yaml | 2 +- .github/workflows/test-and-build.yaml | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/actions/test-and-build/action.yaml b/.github/workflows/actions/test-and-build/action.yaml index 2b9438281..99dd9eda0 100644 --- a/.github/workflows/actions/test-and-build/action.yaml +++ b/.github/workflows/actions/test-and-build/action.yaml @@ -30,7 +30,7 @@ runs: # Default Python (3.12) doesn't have support for distutils because of # which the dep install fails constantly on macos # https://github.com/nodejs/node-gyp/issues/2869 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.11' @@ -105,7 +105,7 @@ runs: shell: bash - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: VSIX built on ${{ runner.os }} path: | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e7dd5af06..a7954643e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -41,11 +41,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # 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. @@ -66,7 +66,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, 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 @@ -79,6 +79,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index 1d4f8b5c8..2246bc3ac 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -23,14 +23,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # NOTE: this is necessary to get the full history # and check if tags are already present fetch-depth: 0 - name: Setup Node.js Environment - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.16.0 diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index 787c02f3c..c9e8f1462 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Node.js Environment - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.16.0 diff --git a/.github/workflows/rebuild-changelog.yaml b/.github/workflows/rebuild-changelog.yaml index ad4637e68..6e6e11834 100644 --- a/.github/workflows/rebuild-changelog.yaml +++ b/.github/workflows/rebuild-changelog.yaml @@ -17,7 +17,7 @@ jobs: name: Rebuild changelog runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # don't checkout a detached HEAD, is important to have a real base # branch when creating a PR diff --git a/.github/workflows/test-and-build.yaml b/.github/workflows/test-and-build.yaml index a0e1b8c9f..ceaaa04f3 100644 --- a/.github/workflows/test-and-build.yaml +++ b/.github/workflows/test-and-build.yaml @@ -23,12 +23,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js Environment - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.16.0