2023-07-29 12:38:06 +00:00
|
|
|
#!/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
|
2023-07-29 12:38:06 +00:00
|
|
|
done
|