ci-includes-yml/scripts/render-pipelines-branch.sh

9 lines
185 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
#%%MULTILINE_YAML_START
#Replace main branch with current branch
for file in pipelines/*.yml
do
2023-07-29 12:46:18 +00:00
sed -i "s;ref: main;ref: '$CI_COMMIT_BRANCH';g" ./$file
done