mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-08 08:21:20 -05:00
13 lines
290 B
Bash
13 lines
290 B
Bash
#!/usr/bin/env bash
|
|
#%%MULTILINE_YAML_START
|
|
#Replace main branch with current branch
|
|
|
|
for file in pipelines/*.yml
|
|
do
|
|
sed -i "s;ref: 'main';ref: '$CI_COMMIT_BRANCH';g" ./$file
|
|
done
|
|
|
|
for file in compliance/*.yml
|
|
do
|
|
sed -i "s;ref: 'main';ref: '$CI_COMMIT_BRANCH';g" ./$file
|
|
done
|