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
This commit is contained in:
atalman 2024-09-05 21:05:06 +00:00 committed by PyTorch MergeBot
parent 034717a029
commit 9c0b03020b
7 changed files with 12 additions and 12 deletions

View file

@ -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:

View file

@ -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

View file

@ -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:

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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

View file

@ -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