Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
installer
Commits
51a7d5b9
Commit
51a7d5b9
authored
Jul 30, 2021
by
Paul McCarthy
🚵
Browse files
Merge branch 'bf/update-manifest' into 'master'
CI: Run checkout in tempdir See merge request fsl/conda/installer!7
parents
843f8266
6872363c
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/update_manifest.py
View file @
51a7d5b9
...
...
@@ -60,19 +60,20 @@ def update_manifest(version):
def
checkout_and_update_manifest
(
server
,
token
,
tag
,
base_branch
):
manifest_url
=
gen_repository_url
(
MANIFEST_PATH
,
server
,
token
)
branch
=
f
'mnt/installer-
{
tag
}
'
branch
=
f
'mnt/
{
base_branch
}
/
installer-
{
tag
}
'
branch
=
gen_branch_name
(
branch
,
MANIFEST_PATH
,
server
,
token
)
msg
=
COMMIT_MSG
.
format
(
tag
)
sprun
(
f
'git clone
{
manifest_url
}
manifest'
)
with
indir
(
'manifest'
):
sprun
(
f
'git config user.name
{
USERNAME
}
'
)
sprun
(
f
'git config user.email
{
EMAIL
}
'
)
sprun
(
f
'git checkout -b
{
branch
}
{
base_branch
}
'
)
update_manifest
(
tag
)
sprun
(
'git add *'
)
sprun
(
f
'git commit -m "
{
msg
}
"'
)
sprun
(
f
'git push origin
{
branch
}
'
)
with
tempdir
():
sprun
(
f
'git clone
{
manifest_url
}
manifest'
)
with
indir
(
'manifest'
):
sprun
(
f
'git config user.name
{
USERNAME
}
'
)
sprun
(
f
'git config user.email
{
EMAIL
}
'
)
sprun
(
f
'git checkout -b
{
branch
}
{
base_branch
}
'
)
update_manifest
(
tag
)
sprun
(
'git add *'
)
sprun
(
f
'git commit -m "
{
msg
}
"'
)
sprun
(
f
'git push origin
{
branch
}
'
)
return
branch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment