[Bug] Add new-package argument to bump-pkg-versions CLI (#2703)

* initial changes to release fleet workflow and CLI

* changed the default value of package version for 8.8

* changed how true/false is passed into CLI command

* reverted changes to packages.yml
This commit is contained in:
Terrance DeJesus
2023-04-12 13:48:58 -04:00
committed by GitHub
parent d6f277e379
commit 894e34f82c
3 changed files with 25 additions and 4 deletions
+19 -2
View File
@@ -11,11 +11,26 @@ on:
required: true
default: 'main'
draft:
description: 'Create a PR as draft (y/n)'
type: choice
description: 'Create a PR as draft'
required: false
options:
- "y"
- "n"
package_maturity:
description: 'Package Maturity (ga/beta)'
type: choice
description: 'Package Maturity'
required: true
options:
- "ga"
- "beta"
new_package:
type: choice
description: 'New Package'
required: true
options:
- "true"
- "false"
commit_hash:
description: 'Commit hash'
required: true
@@ -95,10 +110,12 @@ jobs:
- name: Bump prebuilt rules package version
env:
PACKAGE_MATURITY: "${{github.event.inputs.package_maturity}}"
NEW_PACKAGE: "${{github.event.inputs.new_package}}"
run: |
cd detection-rules
python -m detection_rules dev bump-pkg-versions \
--patch-release \
--new-package $NEW_PACKAGE \
--maturity $PACKAGE_MATURITY
- name: Store release tag