Skip to content

Commit 2ab843e

Browse files
committed
bash shell for clining pygem-notebooks
1 parent a4c030e commit 2ab843e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/test_suite.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)