4adad703fc
* 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
17 lines
296 B
Bash
Executable File
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}
|