Auto Swap Labels #38
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| name: Auto Swap Labels | |
| on: | |
| pull_request_review: | |
| types: [submitted] | |
| jobs: | |
| check-approval: | |
| runs-on: ubuntu-latest | |
| if: github.event.review.state == 'approved' | |
| environment: nemo-ci | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| pip install --no-cache-dir PyGithub slack-sdk | |
| - name: Run Auto Reminder Bot | |
| run: | | |
| export GH_TOKEN=${{ secrets.PAT }} | |
| export PR_NUMBER=${{ github.event.pull_request.number }} | |
| python tests/test_utils/python_scripts/swap_pr_labels.py |