• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Update PyTorch Labels in S3
2
3on:
4  label:
5  workflow_dispatch:
6
7concurrency:
8  group: 1
9  cancel-in-progress: true
10
11jobs:
12  update-labels-in-S3:
13    runs-on: ubuntu-22.04
14    if: ${{ github.repository == 'pytorch/pytorch' }}
15    permissions:
16      id-token: write
17      contents: read
18    steps:
19      - name: Checkout PyTorch
20        uses: pytorch/pytorch/.github/actions/checkout-pytorch@release/2.4
21        with:
22          fetch-depth: 1
23          submodules: false
24      - name: configure aws credentials
25        id: aws_creds
26        uses: aws-actions/configure-aws-credentials@v4
27        with:
28          role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_update_pytorch_labels
29          aws-region: us-east-1
30      - name: Update PyTorch labels list in S3
31        run: |
32          python3 -m pip install boto3==1.19.12
33          .github/scripts/export_pytorch_labels.py pytorch pytorch
34