Skip to content

Backfill Duplicate Detection #1

Backfill Duplicate Detection

Backfill Duplicate Detection #1

name: Backfill Duplicate Detection
on:
workflow_dispatch:
inputs:
days_back:
description: Number of days to look back for issues
required: false
default: "90"
dry_run:
description: Run in dry-run mode (only log, do not trigger workflows)
required: false
default: "true"
type: choice
options:
- "true"
- "false"
permissions:
contents: read
issues: read
actions: write
jobs:
backfill:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout tree
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set-up Mise
uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1
with:
cache: false
- name: Run backfill script
run: ./scripts/backfill-duplicate-detection.ts
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
DAYS_BACK: ${{ github.event.inputs.days_back }}
DRY_RUN: ${{ github.event.inputs.dry_run }}