forked from tsduck/tsduck
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 955 Bytes
/
cleanup-issues.yml
File metadata and controls
33 lines (30 loc) · 955 Bytes
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
31
32
33
#-----------------------------------------------------------------------------
#
# TSDuck - The MPEG Transport Stream Toolkit
# Copyright (c) 2005-2024, Thierry Lelegard
# BSD-2-Clause license, see LICENSE.txt file or https://tsduck.io/license
#
# GitHub Actions configuration file : Cleanup old issues.
#
#-----------------------------------------------------------------------------
name: Cleanup old issues
on:
# Trigger the workflow every week on Sunday at 02:00 UTC.
schedule:
- cron: '0 2 * * 0'
# Allow manual trigger.
workflow_dispatch:
jobs:
cleanup:
name: Cleanup
if: github.repository == 'tsduck/tsduck'
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Get repository
uses: actions/checkout@master
- name: Install dependencies
run: sudo apt install -y python3-github
- name: Cleanup issues
run: python3 pkg/github/close-pending.py