diff --git a/.github/workflows/version-code-and-release.yml b/.github/workflows/version-code-and-release.yml index 2cb792fb0..3348d15ba 100644 --- a/.github/workflows/version-code-and-release.yml +++ b/.github/workflows/version-code-and-release.yml @@ -11,12 +11,7 @@ on: - 'detection_rules/**' - 'tests/**' - '**/*.md' - types: [opened, reopened, synchronize, labeled] - push: - branches: - - main - paths: - - 'pyproject.toml' + types: [opened, reopened, synchronize, labeled, closed] permissions: contents: read @@ -70,7 +65,7 @@ jobs: fi release_drafter: - if: github.ref == 'refs/heads/main' + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write diff --git a/pyproject.toml b/pyproject.toml index 6e8a158f2..de8f6d23b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "detection_rules" -version = "0.2.1" +version = "0.2.2" 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." readme = "README.md" requires-python = ">=3.12"