From c990e6da9586f6b33bf19aba61c934ded6ec28c5 Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Wed, 22 May 2024 15:08:47 +0200 Subject: [PATCH] chore: update action versions (#267) This removes Node.js 16 deprecation warnings --- .github/workflows/build-python-packages.yml | 23 +++++++++++-------- .../workflows/manifest-config-validation.yml | 2 +- .github/workflows/releases-validation.yml | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index 070bdfe4..c9712788 100644 --- a/.github/workflows/build-python-packages.yml +++ b/.github/workflows/build-python-packages.yml @@ -71,7 +71,7 @@ jobs: steps: - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -81,10 +81,11 @@ jobs: -Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }} - name: Publish artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.ARTIFACT_NAME }} path: ${{ runner.temp }}/artifact + if-no-files-found: error test_python: needs: [generate_matrix, build_python] @@ -98,7 +99,7 @@ jobs: steps: - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -111,9 +112,10 @@ jobs: run: if [ -d /Library/Frameworks/Python.framework ]; then sudo rm -rf /Library/Frameworks/Python.framework; fi - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - path: ${{ runner.temp }} + name: ${{ env.ARTIFACT_NAME }} + path: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }} - name: Extract files run: | @@ -138,7 +140,7 @@ jobs: working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }} - name: Setup Python ${{ env.VERSION }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.VERSION }} architecture: ${{ matrix.arch }} @@ -176,7 +178,10 @@ jobs: needs: test_python runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 + with: + pattern: python-* + merge-multiple: true - name: Publish Release ${{ env.VERSION }} id: create_release @@ -202,7 +207,7 @@ jobs: } - name: Upload release assets - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -226,7 +231,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Trigger "Create Pull Request" workflow - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/manifest-config-validation.yml b/.github/workflows/manifest-config-validation.yml index aaa62a7b..717b6ef1 100644 --- a/.github/workflows/manifest-config-validation.yml +++ b/.github/workflows/manifest-config-validation.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true diff --git a/.github/workflows/releases-validation.yml b/.github/workflows/releases-validation.yml index 326e7545..8c5523b9 100644 --- a/.github/workflows/releases-validation.yml +++ b/.github/workflows/releases-validation.yml @@ -18,7 +18,7 @@ jobs: python: [3.9.13, 3.10.11, 3.11.8] steps: - name: setup-python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }}