From 9c0b03020b7204ca5d5dbe18174bab005f79c47b Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 5 Sep 2024 21:05:06 +0000 Subject: [PATCH] Use actions/upload-artifact@v4.4.0 for rest of workflows (#135264) To be consistent with https://github.com/pytorch/pytorch/pull/135263 and rest of workflows. Use v4.4.0. Pull Request resolved: https://github.com/pytorch/pytorch/pull/135264 Approved by: https://github.com/kit1980, https://github.com/malfet --- .github/actions/upload-test-artifacts/action.yml | 6 +++--- .github/workflows/_ios-build-test.yml | 6 +++--- .github/workflows/_mac-build.yml | 4 ++-- .github/workflows/_rocm-test.yml | 2 +- .github/workflows/_xpu-test.yml | 2 +- .github/workflows/scorecards.yml | 2 +- .github/workflows/target_determination.yml | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/actions/upload-test-artifacts/action.yml b/.github/actions/upload-test-artifacts/action.yml index 04cb43b20c3..cbb52a74afb 100644 --- a/.github/actions/upload-test-artifacts/action.yml +++ b/.github/actions/upload-test-artifacts/action.yml @@ -147,7 +147,7 @@ runs: # GHA upload - name: Store Test Downloaded JSONs on Github - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 if: inputs.use-gha continue-on-error: true with: @@ -158,7 +158,7 @@ runs: path: test/**/*.json - name: Store Test Reports on Github - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 if: inputs.use-gha continue-on-error: true with: @@ -172,7 +172,7 @@ runs: test/**/*.csv - name: Store Usage Logs on Github - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 if: inputs.use-gha continue-on-error: true with: diff --git a/.github/workflows/_ios-build-test.yml b/.github/workflows/_ios-build-test.yml index 95fe6bd1a3b..58f55b68540 100644 --- a/.github/workflows/_ios-build-test.yml +++ b/.github/workflows/_ios-build-test.yml @@ -263,7 +263,7 @@ jobs: zip -r "${IOS_ARCH}.zip" install src version.txt LICENSE ./*.podspec popd - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4.4.0 if: matrix.ios_platform == 'OS' with: name: pytorch-ios-build-artifacts-${{ matrix.ios_arch }} @@ -401,13 +401,13 @@ jobs: echo "SPEC_NAME=${SPEC_NAME}" } >> "$GITHUB_ENV" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4.4.0 with: name: pytorch-ios-artifacts if-no-files-found: error path: ${{ env.DEST_DIR }}/${{ env.ARTIFACT_NAME }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4.4.0 with: name: pytorch-ios-podspec if-no-files-found: error diff --git a/.github/workflows/_mac-build.yml b/.github/workflows/_mac-build.yml index 5bc6f06b0f6..8b42037c104 100644 --- a/.github/workflows/_mac-build.yml +++ b/.github/workflows/_mac-build.yml @@ -186,7 +186,7 @@ jobs: zip -1 -r artifacts.zip dist/ build/.ninja_log build/compile_commands.json .additional_ci_files - name: Store PyTorch Build Artifacts on GHA - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped' with: name: ${{ env.BUILD_ENVIRONMENT }} @@ -195,7 +195,7 @@ jobs: path: artifacts.zip - name: Upload sccache stats to GHA - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 # Only if sccache is installed, see above if: ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && steps.build.outcome != 'skipped' }} with: diff --git a/.github/workflows/_rocm-test.yml b/.github/workflows/_rocm-test.yml index 790cd9d403d..b97715b1c05 100644 --- a/.github/workflows/_rocm-test.yml +++ b/.github/workflows/_rocm-test.yml @@ -269,7 +269,7 @@ jobs: find . -iname "core.[1-9]*" -exec docker exec "${CONTAINER_NAME}" sh -c "gdb python {} -ex 'bt' -ex 'q'" \; - name: Store Core dumps on GitHub - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 if: failure() with: name: coredumps-${{ matrix.config }}-${{ matrix.shard }}-${{ matrix.num_shards }}-${{ matrix.runner }} diff --git a/.github/workflows/_xpu-test.yml b/.github/workflows/_xpu-test.yml index 036a2c8eeca..56c2f9fb041 100644 --- a/.github/workflows/_xpu-test.yml +++ b/.github/workflows/_xpu-test.yml @@ -261,7 +261,7 @@ jobs: docker stop "${{ env.CONTAINER_NAME }}" - name: Store Core dumps on GitHub - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 if: failure() with: name: coredumps-${{ matrix.config }}-${{ matrix.shard }}-${{ matrix.num_shards }}-${{ matrix.runner }} diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index cd4258c4787..29fa6718802 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -42,7 +42,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 with: name: SARIF file path: results.sarif diff --git a/.github/workflows/target_determination.yml b/.github/workflows/target_determination.yml index f7b2f383f31..dabd8f6b7e1 100644 --- a/.github/workflows/target_determination.yml +++ b/.github/workflows/target_determination.yml @@ -83,7 +83,7 @@ jobs: path: td_results.json - name: Store TD results on GHA - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.0 if: steps.td.outcome == 'success' with: name: td_results.json