diff --git a/.github/workflows/call-prune-releases.yaml b/.github/workflows/call-prune-releases.yaml index 68efae7..d786854 100644 --- a/.github/workflows/call-prune-releases.yaml +++ b/.github/workflows/call-prune-releases.yaml @@ -1,11 +1,38 @@ -name: Call Prune Releases - on: workflow_dispatch: - release: - types: [published, created] + push: + branches: + - main + - stage + - 'feature/**' + - 'bugfix/**' + - 'fix/**' + - 'hotfix/**' + - 'release/**' + - 'dependabot/**' + - 'renovate/**' + - 'chore/**' + - 'test/**' + pull_request: + types: [labeled, synchronize, opened, reopened, ready_for_review] + branches: + - main + - stage + - 'feature/**' + - 'bugfix/**' + - 'fix/**' + - 'hotfix/**' + - 'release/**' + - 'dependabot/**' + - 'renovate/**' + - 'chore/**' + - 'test/**' +permissions: + contents: write jobs: prune_releases: uses: variablesoftware/github-workflows/.github/workflows/prune-releases.yaml@main + with: + releases_to_keep: 2 # Optional, defaults to 3 secrets: inherit \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 48293ef..6729f09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.3.0](https://github.com/variablesoftware/github-workflows/compare/v1.2.11...v1.3.0) (2025-07-18) + + +### Features + +* **workflow:** enhance call-prune-releases workflow with push and pull request triggers ([fd63f11](https://github.com/variablesoftware/github-workflows/commit/fd63f11d1956a9e39596e4f9c2018bdb13e16f4a)) + ## [1.2.11](https://github.com/variablesoftware/github-workflows/compare/v1.2.10...v1.2.11) (2025-07-18) ## [1.2.10](https://github.com/variablesoftware/github-workflows/compare/v1.2.9...v1.2.10) (2025-07-18) diff --git a/package.json b/package.json index 6780bff..ec5706f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-workflows", - "version": "1.2.11", + "version": "1.3.0", "description": "Reusable GitHub Actions workflows for the organization.", "main": "README.md", "license": "MIT",