Skip to content

Commit

Permalink
handle prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed Apr 19, 2024
1 parent ded0793 commit 22786b5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/cache_elephant_data.yml
Expand Up @@ -55,7 +55,22 @@ jobs:
gin --version
git clone --depth 1 https://gin.g-node.org/NeuralEnsemble/elephant-data.git
cd elephant-data
gin add-remote primary gin:NeuralEnsemble/elephant-data
set timeout 10
spawn gin add-remote primary gin:NeuralEnsemble/elephant-data
expect {
"Remote ssh://git@gin.g-node.org:22/NeuralEnsemble/elephant-data does not exist. Would you like to create it?" {
send "yes\r"
expect eof
}
timeout {
puts "Timeout occurred. Exiting."
exit 1
}
eof {
puts "Command executed successfully."
exit 0
}
}
gin getc .
echo "dataset-path =$(pwd)"" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 22786b5

Please sign in to comment.