From be3ea46c5b530c02f4350910c5b7ae5113930f42 Mon Sep 17 00:00:00 2001 From: John Gehrig Date: Sun, 3 Nov 2024 09:16:56 -0500 Subject: [PATCH] Update GitHub Actions upload-artifact to v4 The version of upload-artifact we're currently using is deprecated: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/ We should bump to the latest version. This also fixes a small typo in the script, where a multiline run '|' was missing. --- .github/workflows/build-test.yml | 2 +- .github/workflows/format.yml | 2 +- .github/workflows/neovim-api.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index d1db22a0f..21a692af9 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -120,7 +120,7 @@ jobs: - name: Upload Artifacts if: ${{ matrix.publish }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.name }} if-no-files-found: ignore diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index afdeb8dff..5aad917a2 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -47,7 +47,7 @@ jobs: - name: Upload Artifacts if: fromJSON(env.changes_detected) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ClangFormat Patch path: clang_format.patch diff --git a/.github/workflows/neovim-api.yml b/.github/workflows/neovim-api.yml index 17dbb5e90..b20cb6c91 100644 --- a/.github/workflows/neovim-api.yml +++ b/.github/workflows/neovim-api.yml @@ -70,7 +70,7 @@ jobs: python ${{ env.GEN_CMD }} ${{ env.NVIM_EXE }} ${{ env.OUTPUT }} - name: Upload Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Neovim API ${{ matrix.version}} Bindings path: | @@ -119,7 +119,7 @@ jobs: Expand-Archive -Path nvim-win64.zip -DestinationPath ${{ github.workspace }}\build\ - name: Install Dependencies - run: + run: | pip install jinja2 msgpack choco install dos2unix @@ -135,7 +135,7 @@ jobs: dos2unix src/auto/neovimapi${{ matrix.version }}.h - name: Upload Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Neovim API ${{ matrix.version}} Bindings path: |