Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Best Practices
jupytext
Commits
65c2a662
Commit
65c2a662
authored
Feb 07, 2022
by
Cyril Matthey-Doret
Browse files
Update .gitlab-ci.yml file
parent
c89e6381
Pipeline
#315642
passed with stage
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
65c2a662
...
@@ -25,7 +25,7 @@ pull_jupytext_github:
...
@@ -25,7 +25,7 @@ pull_jupytext_github:
CI_PUSH_REPO=$(echo $CI_REPOSITORY_URL | perl -pe 's#.*@(.+?(\:\d+)?)/#git@\1:#')
CI_PUSH_REPO=$(echo $CI_REPOSITORY_URL | perl -pe 's#.*@(.+?(\:\d+)?)/#git@\1:#')
git remote set-url --push origin "${CI_PUSH_REPO}"
git remote set-url --push origin "${CI_PUSH_REPO}"
git config user.name "Gitlab CI"
git config user.name "Gitlab CI"
git config user.email "
tokenowner@emai
l.c
om
"
git config user.email "
cyril.matthey-doret@epf
l.c
h
"
# runner runs on a detached HEAD, create a temporary local branch for editing
# runner runs on a detached HEAD, create a temporary local branch for editing
git checkout -b ci_processing
git checkout -b ci_processing
...
@@ -33,7 +33,7 @@ pull_jupytext_github:
...
@@ -33,7 +33,7 @@ pull_jupytext_github:
# update jupytext submodule
# update jupytext submodule
git submodule foreach git pull origin main
git submodule foreach git pull origin main
git add jupytext
git add jupytext
git commit -m "sync: jupytext@$(git submodule status |
sed 's/^ *//' | head -c8
)"
git commit -m "sync: jupytext@$(git submodule status |
cut -c2-9
)"
# push changes
# push changes
# always return true so that the build does not fail if there are no changes
# always return true so that the build does not fail if there are no changes
...
...
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