Update manual-backport.yml (#2639)

This commit is contained in:
Mika Ayenson
2023-03-09 16:42:09 -05:00
committed by GitHub
parent 0a637a3d86
commit 40eff15fbe
+2 -1
View File
@@ -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