mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-20 12:17:19 -04:00
ci(merge rep): prevent interpolation in commit msg (#1637)
This commit is contained in:
parent
2d5cb206e5
commit
d0cba61b16
1 changed files with 2 additions and 1 deletions
|
@ -119,6 +119,7 @@ with open(f'{sys.argv[1]}/{filename}', 'w+') as f:
|
|||
yaml.dump(pipeline, f)
|
||||
|
||||
try:
|
||||
quoted_title = "'" + title.replace("'", "'\"'\"'") + "'"
|
||||
print(subprocess.check_output(f'''
|
||||
rm -r .gitlab-ci/dashboard_tmp || echo "nothing to do"
|
||||
git clone {dashboard_url} .gitlab-ci/dashboard_tmp
|
||||
|
@ -129,7 +130,7 @@ cd .gitlab-ci/dashboard_tmp
|
|||
git config user.email {git_email}
|
||||
git config user.name {git_name}
|
||||
git add pipelines_{workflow_repo}/{filename}
|
||||
git commit -m "{workflow_repo}: {title.replace('"',"'")}" || echo "commit fail"
|
||||
git commit -m '{workflow_repo}: '{quoted_title} || echo "commit fail"
|
||||
git push
|
||||
cd -
|
||||
''', shell=True))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue