Files
sigma-rules/etc/lock-multiple.sh
T
Ross Wolf 79d3b60c9a [CI] Add GitHub actions workflow to lock versions across branches (#1456)
* Start job to lock versions
* Update lock-versions workflow
* Call lock-multiple script
* Fix script
* Add the lock file to staging
* pass branches to the job
* Fetch all branches and tags
* Push the branch first
* Push with upstream
* Change PR params
* Remove protections machine token
* Add 7.14.0 to the lock for min_stack_version=7.14.0
* Fix branch prefix
* Add trailing newline
* Trailing newline
* Restrict to main branch

(cherry picked from commit 4adad703fc)
2021-08-26 20:18:34 +00:00

17 lines
296 B
Bash
Executable File

#!/bin/bash
set -x
set -e
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
# switch to
for BRANCH in $(echo $@ | sed "s/,/ /g")
do
echo $BRANCH
git checkout $BRANCH
git pull
python -m detection_rules dev build-release --update-version-lock
done
git checkout ${CURRENT_BRANCH}