Files
yml/scripts/render-pipelines-branch.sh
DeveloperDurp b5d15595f8 Update 2 files
- /job-templates.tpl.yml
- /scripts/render-pipelines-branch.sh
2023-07-29 12:38:06 +00:00

14 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