From 2eb375be82feb18cfb7c21ea8a5e94c0570f4b88 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Wed, 10 Jan 2024 10:29:47 -0500 Subject: [PATCH] Downgrade artifact version in build_wheels (#29960) * Downgrade artifact version in build_wheels * indentation fix * indentation --- .github/workflows/build_wheels.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 82924c3abcbd..8a061ef9a6e3 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -125,12 +125,14 @@ jobs: working-directory: ./sdks/python run: mv $(ls | grep apache-beam) apache-beam-source - name: Upload source as artifact - uses: actions/upload-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/upload-artifact@v3 with: name: source path: sdks/python/apache-beam-source - name: Upload compressed sources as artifacts - uses: actions/upload-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/upload-artifact@v3 with: name: source_zip path: sdks/python/dist @@ -167,13 +169,15 @@ jobs: run: mv $(ls | grep apache-beam) apache-beam-source-rc - name: Upload RC source as artifact if: steps.is_rc.outputs.is_rc == 1 - uses: actions/upload-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/upload-artifact@v3 with: name: source_rc${{ steps.get_rc_version.outputs.RC_NUM }} path: sdks/python/apache-beam-source-rc - name: Upload compressed RC sources as artifacts if: steps.is_rc.outputs.is_rc == 1 - uses: actions/upload-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/upload-artifact@v3 with: name: source_zip_rc${{ steps.get_rc_version.outputs.RC_NUM }} path: sdks/python/dist @@ -204,7 +208,8 @@ jobs: if: needs.check_env_variables.outputs.gcp-variables-set == 'true' steps: - name: Download compressed sources from artifacts - uses: actions/download-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/download-artifact@v3 with: name: source_zip path: source/ @@ -237,13 +242,15 @@ jobs: arch: aarch64 steps: - name: Download python source distribution from artifacts - uses: actions/download-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/download-artifact@v3 with: name: source path: apache-beam-source - name: Download Python SDK RC source distribution from artifacts if: ${{ needs.build_source.outputs.is_rc == 1 }} - uses: actions/download-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/download-artifact@v3 with: name: source_rc${{ needs.build_source.outputs.rc_num }} path: apache-beam-source-rc @@ -278,7 +285,8 @@ jobs: done shell: bash - name: Upload wheels as artifacts - uses: actions/upload-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/upload-artifact@v3 with: name: wheelhouse-${{ matrix.os_python.os }}${{ (matrix.arch == 'aarch64' && '-aarch64') || '' }} path: apache-beam-source/wheelhouse/ @@ -303,7 +311,8 @@ jobs: shell: bash - name: Upload RC wheels as artifacts if: ${{ needs.build_source.outputs.is_rc == 1 }} - uses: actions/upload-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/upload-artifact@v3 with: name: wheelhouse-rc${{ needs.build_source.outputs.rc_num }}-${{ matrix.os_python.os }}${{ (matrix.arch == 'aarch64' && '-aarch64') || '' }} path: apache-beam-source-rc/wheelhouse/ @@ -324,7 +333,8 @@ jobs: arch: aarch64 steps: - name: Download wheels from artifacts - uses: actions/download-artifact@v4 + # Pinned to v3 because of https://github.com/actions/download-artifact/issues/249 + uses: actions/download-artifact@v3 with: name: wheelhouse-${{ matrix.os }}${{ (matrix.arch == 'aarch64' && '-aarch64') || '' }} path: wheelhouse/