TensorRT-LLMs/.github/workflows/label_community_pr.yml
Po-Wei (Vincent) 864de5b8b2
[None][infra] Set the label community action to only run on upstream TRTLLM (#5806)
Signed-off-by: Po-Wei Wang (Vincent) <poweiw@nvidia.com>
2025-07-08 15:33:42 +09:00

38 lines
1.1 KiB
YAML

name: Label Community PR
on:
schedule:
- cron: '0 * * * *' # every hour at minute 0
workflow_dispatch: # manual trigger option
inputs:
time_window_minutes:
description: 'Time window in minutes to look back for PRs'
required: false
default: 65
type: number
jobs:
label_pr:
runs-on: ubuntu-latest
if: github.repository == 'NVIDIA/TensorRT-LLM'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Run labeling script
env:
AUTO_LABEL_COMMUNITY_TOKEN: ${{ secrets.AUTO_LABEL_COMMUNITY_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
COMMUNITY_LABEL: "Community want to contribute"
TIME_WINDOW_MINUTES: ${{ inputs.time_window_minutes || 65 }}
run: python .github/scripts/label_community_user.py