Skip to content

Commit fd63f11

Browse files
committed
feat(workflow): enhance call-prune-releases workflow with push and pull request triggers
1 parent 55afa1b commit fd63f11

1 file changed

Lines changed: 31 additions & 4 deletions

File tree

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
1-
name: Call Prune Releases
2-
31
on:
42
workflow_dispatch:
5-
release:
6-
types: [published, created]
73

4+
push:
5+
branches:
6+
- main
7+
- stage
8+
- 'feature/**'
9+
- 'bugfix/**'
10+
- 'fix/**'
11+
- 'hotfix/**'
12+
- 'release/**'
13+
- 'dependabot/**'
14+
- 'renovate/**'
15+
- 'chore/**'
16+
- 'test/**'
17+
pull_request:
18+
types: [labeled, synchronize, opened, reopened, ready_for_review]
19+
branches:
20+
- main
21+
- stage
22+
- 'feature/**'
23+
- 'bugfix/**'
24+
- 'fix/**'
25+
- 'hotfix/**'
26+
- 'release/**'
27+
- 'dependabot/**'
28+
- 'renovate/**'
29+
- 'chore/**'
30+
- 'test/**'
31+
permissions:
32+
contents: write
833
jobs:
934
prune_releases:
1035
uses: variablesoftware/github-workflows/.github/workflows/prune-releases.yaml@main
36+
with:
37+
releases_to_keep: 2 # Optional, defaults to 3
1138
secrets: inherit

0 commit comments

Comments
 (0)