forked from airbus/decomon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Modify decomon version installed in *all* tutorials, even in subdirectories (use ** pattern)
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,8 @@ jobs: | |
# install from TestPypi if on a fork | ||
new_pip_spec_pattern="${new_pip_spec_pattern} --extra-index-url https://test.pypi.org/simple/" | ||
fi | ||
sed -i -e "s|${old_pip_spec_pattern}|${new_pip_spec_pattern}|" tutorials/*.ipynb | ||
shopt -s globstar # enable ** | ||
sed -i -e "s|${old_pip_spec_pattern}|${new_pip_spec_pattern}|" tutorials/**/*.ipynb | ||
- name: replace decomon version to install in binder environment | ||
run: | | ||
version=${{ needs.deploy.outputs.package_version }} | ||
|
@@ -91,7 +92,7 @@ jobs: | |
echo ${new_tag_name} | ||
git config user.name "Actions" | ||
git config user.email "[email protected]" | ||
git commit binder/environment.yml tutorials/*.ipynb -m "Install appropriate version of decomon" | ||
git commit binder/environment.yml tutorials -m "Install appropriate version of decomon" | ||
git tag ${new_tag_name} -m "Release ${current_tag_name} + installation in tutorials updated" | ||
git push origin ${new_tag_name} | ||
# store new tag name | ||
|