pytorch/.github/workflows/update_pytorch_labels.yml
Catherine Lee cc93c1e5e4 Upload artifacts during test run (#125799)
Zip and upload artifacts while run_test is running
Upgrade boto3 because I get errors about not having `botocore.vendored.six.move` if I don't
Pull Request resolved: https://github.com/pytorch/pytorch/pull/125799
Approved by: https://github.com/huydhn
2024-10-22 16:48:57 +00:00

33 lines
900 B
YAML

name: Update PyTorch Labels in S3
on:
label:
workflow_dispatch:
concurrency:
group: 1
cancel-in-progress: true
jobs:
update-labels-in-S3:
runs-on: ubuntu-22.04
if: ${{ github.repository == 'pytorch/pytorch' }}
permissions:
id-token: write
contents: read
steps:
- name: Checkout PyTorch
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main
with:
fetch-depth: 1
submodules: false
- name: configure aws credentials
id: aws_creds
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_update_pytorch_labels
aws-region: us-east-1
- name: Update PyTorch labels list in S3
run: |
python3 -m pip install boto3==1.35.42
.github/scripts/export_pytorch_labels.py pytorch pytorch