-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 995 Bytes
/
delete_workflow_runs.yaml
File metadata and controls
35 lines (32 loc) · 995 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
34
35
name: delete-workflow-runs
on:
workflow_dispatch:
inputs:
repo_name:
description: "Specify the name of the repository"
required: true
type: string
workflow_name:
description: "Specify the name of the workflow"
required: false
type: string
jobs:
delete-specific-workflow-runs:
if: inputs.workflow_name != ''
runs-on: ubuntu-latest
steps:
- uses: christosgalano/delete-workflow-runs@v1.0.0
with:
owner: ${{ github.repository_owner }}
repo: ${{ inputs.repo_name }}
token: ${{ secrets.WORKFLOWS_MANAGER_PAT }}
workflow: ${{ inputs.workflow_name }}
delete-all-workflow-runs:
if: inputs.workflow_name == ''
runs-on: ubuntu-latest
steps:
- uses: christosgalano/delete-workflow-runs@v1.0.0
with:
owner: ${{ github.repository_owner }}
repo: ${{ inputs.repo_name }}
token: ${{ secrets.WORKFLOWS_MANAGER_PAT }}