summaryrefslogtreecommitdiff
path: root/.github/workflows/similar_issues.yml
blob: 84fb0f05164f5c2ff53159e9c3da5910176de6a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Suggest Similar Issues

on:
  issues:
    types: [opened]

concurrency:
  group: similar-issues-${{ github.repository_id }}-${{ github.event.issue.number }}
  cancel-in-progress: true

permissions: {}

jobs:
  suggest:
    if: ${{ github.event.issue.pull_request == null }}
    runs-on: ubuntu-22.04
    timeout-minutes: 5
    permissions:
      contents: read
      issues: write
    steps:
      - name: Checkout trusted workflow code
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          persist-credentials: false

      - name: Suggest related issues
        env:
          GITHUB_TOKEN: ${{ github.token }}
        run: python3 tools/ci/similar_issues.py