Skip to content

Commit f68ce03

Browse files
authored
ci: Enhance PR sweep workflow with manual trigger
Added workflow_dispatch input to override 'since' parameter.
1 parent fba54ae commit f68ce03

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/pr-sweep.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: PR sweep
22

33
on:
4-
- push
4+
push:
5+
workflow_dispatch:
6+
inputs:
7+
since:
8+
description: 'Override the "since" parameter (e.g. "30 days ago")'
9+
required: false
10+
default: '10 days ago'
511

612
jobs:
713
pr-sweep:
@@ -10,11 +16,12 @@ jobs:
1016
timeout-minutes: 30
1117
if: github.repository == 'DIRACGrid/DIRAC'
1218
steps:
13-
- uses: actions/checkout@v3
14-
with:
15-
fetch-depth: 0
16-
token: ${{ secrets.PAT }}
17-
- uses: DIRACGrid/pr-sweeper@main
18-
with:
19-
github-pat: ${{ secrets.PAT }}
20-
pr-project-name: DiracGridBot/DIRAC
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
token: ${{ secrets.PAT }}
23+
- uses: DIRACGrid/pr-sweeper@main
24+
with:
25+
github-pat: ${{ secrets.PAT }}
26+
pr-project-name: DiracGridBot/DIRAC
27+
since: ${{ inputs.since || '10 days ago' }}

0 commit comments

Comments
 (0)