From 40eff15fbe4efc7bac82444b3aa600fb6fa1c576 Mon Sep 17 00:00:00 2001 From: Mika Ayenson Date: Thu, 9 Mar 2023 16:42:09 -0500 Subject: [PATCH] Update manual-backport.yml (#2639) --- .github/workflows/manual-backport.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual-backport.yml b/.github/workflows/manual-backport.yml index 35e900a36..002bccf9c 100644 --- a/.github/workflows/manual-backport.yml +++ b/.github/workflows/manual-backport.yml @@ -54,7 +54,8 @@ jobs: env: UNSTAGED_LIST_FILE: "../unstaged-rules.txt" run: | - python -m detection_rules dev unstage-incompatible-rules --target-stack-version "${{github.event.inputs.target_branch}}" --exception-list "${{github.event.inputs.exceptions}}" + VERSION=$(cat detection_rules/etc/packages.yml | grep -oP "(?<=name:\s')[\d\.]+[-\w\.]*(?=')") + python -m detection_rules dev unstage-incompatible-rules --target-stack-version "$VERSION" --exception-list "${{github.event.inputs.exceptions}}" # Track which rules were unstaged git diff --name-only > $UNSTAGED_LIST_FILE