File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,18 +56,19 @@ jobs:
5656 run : initialize
5757
5858 - name : ' Clone the PyGEM-notebooks repo'
59- shell : bash
6059 run : |
61- set -e
6260 BRANCH=${GITHUB_REF#refs/heads/}
6361 echo "BRANCH is $BRANCH"
6462 if [ "$BRANCH" = "master" ]; then
6563 NOTEBOOK_BRANCH="main"
6664 else
6765 NOTEBOOK_BRANCH="dev"
6866 fi
69- echo "NOTEBOOK_BRANCH is $NOTEBOOK_BRANCH"
70- git clone --depth 1 --branch "$NOTEBOOK_BRANCH" https://github.com/pygem-community/PyGEM-notebooks.git || echo "Git clone failed"
67+ # Run git clone and capture the output
68+ git clone --depth 1 --branch "$NOTEBOOK_BRANCH" https://github.com/pygem-community/PyGEM-notebooks.git || { echo "Git clone failed"; exit 1; }
69+
70+ # Check the path and echo
71+ echo "Cloning completed successfully!"
7172 echo "PYGEM_NOTEBOOKS_DIRPATH=$(pwd)/PyGEM-notebooks" >> "$GITHUB_ENV"
7273
7374 - name : ' Run tests'
You can’t perform that action at this time.
0 commit comments