Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Konboi committed Aug 9, 2024
1 parent 9440091 commit 33dfb55
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,27 @@ runs:
options+=("--session-name" "${{ inputs.test_session_name }}")
fi
# In some case (e.g. parallel execution), wants to use the same ses sion name.
# So, allow the case that the session name is already used.
set +e
echo '-------start record session-------'
output=$(launchable record session "${options[@]}" 2>&1)
echo '-------done record session-------'
echo "-------- exit code: ---------"
exit_code=$?
echo $exit_code
echo '-----------------------------'
# In some case (e.g. parallel execution), wants to use the same session name.
# So, allow the case that the session name is already used.
if [[ $output == *"is already used"* ]]; then
echo "INFO: test_session_name: `${{ inputs.test_session_name }}` is already registered"
exit_code=0
fi
# for debug
ehoc "---debug---"
echo "---debug---"
echo "$output"
echo "---------"
exit $exit_code
- id: record_test
Expand Down

0 comments on commit 33dfb55

Please sign in to comment.