update_duplicate_magnets.yml

 1name: Update Duplicate Magnets Issue
 2
 3on:
 4  schedule:
 5    - cron: "0 6 * * 1,4" # Mondays and Thursdays at 6 AM UTC
 6  workflow_dispatch:
 7
 8jobs:
 9  update-duplicate-magnets:
10    runs-on: ubuntu-latest
11    if: github.repository == 'zed-industries/zed'
12    steps:
13      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
14
15      - name: Set up Python
16        uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
17        with:
18          python-version: "3.12"
19
20      - name: Install dependencies
21        run: pip install requests
22
23      - name: Update duplicate magnets issue
24        env:
25          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26        run: |
27          python script/github-find-top-duplicated-bugs.py \
28            --github-token "$GITHUB_TOKEN" \
29            --issue-number 46355