OpenSearch/.ci/make-branch-config.sh

12 lines
175 B
Bash
Executable File

#!/bin/bash
if [ -z "$BRANCH" ] ; then
echo "BRANCH is unset"
exit 1
fi
rm -Rf .ci/jobs
cp -r .ci/jobs.t .ci/jobs
sed -i "s/%BRANCH%/${BRANCH}/g" .ci/jobs/*.yml