Skip to content

Commit c278c39

Browse files
authored
Set preview docs in PRs to overwrite (#7116)
This sets the upload to S3 for docs previews in PRs to overwrite. This is generally in line with standard S3 behavior and should prevent a CI error where repeated builds in PRs fail to upload after the first run, e.g. [here](https://github.com/pytorch/vision/actions/runs/17506203012?pr=9207).
1 parent 548a4bc commit c278c39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/linux_job_v2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ jobs:
350350
path: ${{ env.RUNNER_DOCS_DIR }}
351351
# ${{ env.repository }} is $OWNER/$REPO
352352
s3-prefix: ${{ env.REPOSITORY }}/${{ github.event.pull_request.number }}
353+
# Overwrite doc previews for the same PR
354+
overwrite: true
353355

354356
- name: Teardown Linux
355357
if: always() && steps.check_container_runner.outputs.IN_CONTAINER_RUNNER == 'false'

0 commit comments

Comments
 (0)