Skip to content

Commit df7fc07

Browse files
committed
Use different syntax
1 parent b4f1fb7 commit df7fc07

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/run_tutorials.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,10 @@ jobs:
9999
- name: Run the converted notebook
100100
run: |
101101
NOTEBOOK="./tutorials/${{ matrix.notebook }}.py"
102-
if [[ "${{ matrix.notebook }}" == "47_Human_in_the_Loop_Agent" ]]; then
103-
# We add a prompt to confirm any user inputs in the HiTL notebook
102+
if [ "${{ matrix.notebook }}" = "47_Human_in_the_Loop_Agent" ]; then
104103
yes y | python "$NOTEBOOK"
105-
elif [[ "${{ matrix.notebook }}" == "48_Conversational_RAG" ]]; then
106-
yes Q | python "$NOTEBOOK"
104+
elif [ "${{ matrix.notebook }}" = "48_Conversational_RAG" ]; then
105+
printf "Q\n" | python "$NOTEBOOK"
107106
else
108107
python "$NOTEBOOK"
109108
fi

0 commit comments

Comments
 (0)