Skip to content

Commit d8f193b

Browse files
Mikaayensongithub-actions[bot]
authored andcommitted
[FR] DRAFT Release Workflow on PR Merge (#4253)
(cherry picked from commit c1ac8f0)
1 parent c67a987 commit d8f193b

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/version-code-and-release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ on:
1111
- 'detection_rules/**'
1212
- 'tests/**'
1313
- '**/*.md'
14-
types: [opened, reopened, synchronize, labeled]
15-
push:
16-
branches:
17-
- main
18-
paths:
19-
- 'pyproject.toml'
14+
types: [opened, reopened, synchronize, labeled, closed]
2015

2116
permissions:
2217
contents: read
@@ -70,7 +65,7 @@ jobs:
7065
fi
7166
7267
release_drafter:
73-
if: github.ref == 'refs/heads/main'
68+
if: github.event.pull_request.merged == true
7469
runs-on: ubuntu-latest
7570
permissions:
7671
contents: write

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "detection_rules"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine."
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)