mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-18 05:28:02 +00:00
10a91c5199
The greptile suggestion in #22034 was applied without removing the original env block, leaving a duplicate env key that makes the YAML invalid. GitHub fails to parse the workflow on every push to main, creating failed run entries ("No jobs were run").
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Scan Duplicate Issues (One-Time)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
threshold:
|
|
description: "Similarity threshold (0-1)"
|
|
required: false
|
|
default: "0.85"
|
|
close:
|
|
description: "Actually close duplicates (false = dry run)"
|
|
required: false
|
|
type: boolean
|
|
default: false
|
|
|
|
jobs:
|
|
scan:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
contents: read
|
|
steps:
|
|
- name: Checkout scripts
|
|
uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: .github/scripts
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Scan for duplicate issues
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
INPUT_THRESHOLD: ${{ inputs.threshold }}
|
|
INPUT_CLOSE: ${{ inputs.close }}
|
|
run: |
|
|
CLOSE_FLAG=""
|
|
if [ "$INPUT_CLOSE" = "true" ]; then
|
|
CLOSE_FLAG="--close"
|
|
fi
|
|
python3 .github/scripts/close_duplicate_issues.py \
|
|
--scan \
|
|
--repo ${{ github.repository }} \
|
|
--threshold "$INPUT_THRESHOLD" \
|
|
$CLOSE_FLAG
|