From ac22a71de36f28106bd759bf8a111055836d00db Mon Sep 17 00:00:00 2001 From: Alain Date: Wed, 6 Nov 2024 17:46:10 +0100 Subject: [PATCH] Bump deprecated download-upload artifact github actions (#1408) Hi, I'm opening this as [Github is deprecating the upload/download artifact actions](https://github.blog/changelog/2024-11-05-notice-of-breaking-changes-for-github-actions/) on 5th Dec. We have a forked repo of pulumi-awsx and since we are bumping it for us it we thought it could be useful to open a PR here too. Thanks all --- .github/workflows/cron.yml | 8 ++++---- .github/workflows/master.yml | 18 +++++++++--------- .github/workflows/pre-release.yml | 20 ++++++++++---------- .github/workflows/release.yml | 20 ++++++++++---------- .github/workflows/run-acceptance-tests.yml | 10 +++++----- 5 files changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index a09c64809..facb9372b 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -118,14 +118,14 @@ jobs: sdk/nodejs/package.json sdk/python/pyproject.toml - name: Upload bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bin path: bin - name: Tar provider bin run: tar -zcf ${{ github.workspace }}/provider.tar.gz -C ${{ github.workspace }}/${{ env.PROVIDER }}/bin/ . - name: Upload provider bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/provider.tar.gz @@ -162,7 +162,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Download bin - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bin path: bin @@ -185,7 +185,7 @@ jobs: run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 63d37d880..9ed5e807a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -118,14 +118,14 @@ jobs: sdk/nodejs/package.json sdk/python/pyproject.toml - name: Upload bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bin path: bin - name: Tar provider bin run: tar -zcf ${{ github.workspace }}/provider.tar.gz -C ${{ github.workspace }}/${{ env.PROVIDER }}/bin/ . - name: Upload provider bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/provider.tar.gz @@ -166,7 +166,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Download bin - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bin path: bin @@ -189,7 +189,7 @@ jobs: run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz @@ -245,7 +245,7 @@ jobs: - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - name: Download provider binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/bin @@ -283,21 +283,21 @@ jobs: with: gradle-version: "8.4" - name: Download python SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-sdk.tar.gz path: ${{ github.workspace}}/sdk/ - name: Uncompress python SDK run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C ${{github.workspace}}/sdk/python - name: Download dotnet SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dotnet-sdk.tar.gz path: ${{ github.workspace}}/sdk/ - name: Uncompress dotnet SDK run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C ${{github.workspace}}/sdk/dotnet - name: Download nodejs SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: nodejs-sdk.tar.gz path: ${{ github.workspace}}/sdk/ @@ -309,7 +309,7 @@ jobs: name: Publish SDK run: ./scripts/publish_packages.sh - name: Download java SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: java-sdk.tar.gz path: ${{ github.workspace}}/sdk/ diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index dd4a9035f..4ed5eb6d3 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -118,14 +118,14 @@ jobs: sdk/nodejs/package.json sdk/python/pyproject.toml - name: Upload bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bin path: bin - name: Tar provider bin run: tar -zcf ${{ github.workspace }}/provider.tar.gz -C ${{ github.workspace }}/${{ env.PROVIDER }}/bin/ . - name: Upload provider bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/provider.tar.gz @@ -166,7 +166,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Download bin - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bin path: bin @@ -189,7 +189,7 @@ jobs: run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz @@ -245,7 +245,7 @@ jobs: - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - name: Download provider binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/bin @@ -292,21 +292,21 @@ jobs: with: gradle-version: "8.4" - name: Download python SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-sdk.tar.gz path: ${{ github.workspace}}/sdk/ - name: Uncompress python SDK run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C ${{github.workspace}}/sdk/python - name: Download dotnet SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dotnet-sdk.tar.gz path: ${{ github.workspace}}/sdk/ - name: Uncompress dotnet SDK run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C ${{github.workspace}}/sdk/dotnet - name: Download nodejs SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: nodejs-sdk.tar.gz path: ${{ github.workspace}}/sdk/ @@ -318,7 +318,7 @@ jobs: name: Publish SDK run: ./scripts/publish_packages.sh - name: Download java SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: java-sdk.tar.gz path: ${{ github.workspace}}/sdk/ @@ -348,7 +348,7 @@ jobs: with: repo: pulumi/pulumictl - name: Download Go SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: go-sdk.tar.gz path: ${{ github.workspace }}/sdk/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b64a17e2b..eb76ee58c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,14 +117,14 @@ jobs: sdk/nodejs/package.json sdk/python/pyproject.toml - name: Upload bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bin path: bin - name: Tar provider bin run: tar -zcf ${{ github.workspace }}/provider.tar.gz -C ${{ github.workspace }}/${{ env.PROVIDER }}/bin/ . - name: Upload provider bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/provider.tar.gz @@ -165,7 +165,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Download bin - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bin path: bin @@ -188,7 +188,7 @@ jobs: run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz @@ -244,7 +244,7 @@ jobs: - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - name: Download provider binary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/bin @@ -290,21 +290,21 @@ jobs: with: gradle-version: "8.4" - name: Download python SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-sdk.tar.gz path: ${{ github.workspace}}/sdk/ - name: Uncompress python SDK run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C ${{github.workspace}}/sdk/python - name: Download dotnet SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dotnet-sdk.tar.gz path: ${{ github.workspace}}/sdk/ - name: Uncompress dotnet SDK run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C ${{github.workspace}}/sdk/dotnet - name: Download nodejs SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: nodejs-sdk.tar.gz path: ${{ github.workspace}}/sdk/ @@ -316,7 +316,7 @@ jobs: name: Publish SDK run: ./scripts/publish_packages.sh - name: Download java SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: java-sdk.tar.gz path: ${{ github.workspace}}/sdk/ @@ -346,7 +346,7 @@ jobs: with: repo: pulumi/pulumictl - name: Download Go SDK - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: go-sdk.tar.gz path: ${{ github.workspace }}/sdk/ diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 1dda8ede6..dd6c89aa9 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -77,7 +77,7 @@ jobs: - name: Build dist packages run: make dist - name: Upload dist - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dist path: dist @@ -142,14 +142,14 @@ jobs: sdk/nodejs/package.json sdk/python/pyproject.toml - name: Upload bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bin path: bin - name: Tar provider bin run: tar -zcf ${{ github.workspace }}/provider.tar.gz -C ${{ github.workspace }}/${{ env.PROVIDER }}/bin/ . - name: Upload provider bin - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/provider.tar.gz @@ -187,7 +187,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Download bin - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bin path: bin @@ -210,7 +210,7 @@ jobs: run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz