mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
Example run: https://github.com/pytorch/pytorch/actions/runs/11601996563/job/32305991204?pr=139296 (commented out the part that actually closes issues but the queries run) Pull Request resolved: https://github.com/pytorch/pytorch/pull/139296 Approved by: https://github.com/huydhn
28 lines
958 B
YAML
28 lines
958 B
YAML
name: Close nonexistent disable issues
|
|
|
|
on:
|
|
schedule:
|
|
- cron: 5 22 * * 5 # this should be about 3PM PT on Friday
|
|
|
|
jobs:
|
|
close-nonexistent-disable-issues:
|
|
environment: rockset-read-only
|
|
if: github.repository_owner == 'pytorch'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout PyTorch
|
|
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main
|
|
with:
|
|
submodules: false
|
|
fetch-depth: 1
|
|
|
|
- name: Run close_nonexistent_disable_issues.py
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CLICKHOUSE_ENDPOINT: ${{ secrets.CLICKHOUSE_ENDPOINT }}
|
|
CLICKHOUSE_USERNAME: ${{ secrets.CLICKHOUSE_READONLY_USERNAME }}
|
|
CLICKHOUSE_PASSWORD: ${{ secrets.CLICKHOUSE_READONLY_PASSWORD }}
|
|
run: |
|
|
pip3 install requests==2.32.2
|
|
pip3 install clickhouse-connect==0.7.16
|
|
python3 .github/scripts/close_nonexistent_disable_issues.py
|