Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
rvykydal committed Apr 17, 2024
1 parent f7a996a commit 5032c1a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/kickstart-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,23 @@ jobs:
BODY: ${{ github.event.comment.body }}
run: |
set -eux
# extract first line and cut out the "/kickstart-tests" first word
ARGS=$(echo "$BODY" | sed -n '1 s/^[^ ]* *//p' | sed 's/[[:space:]]*$//')
# detect and remove --run-disabled option
BODY=$(echo "$BODY" | head -1 | sed 's/--run-disabled//; t; q1')
if [ $? == 0 ]; then
LAUNCH_ARGS=$(echo "$ARGS" | sed 's/--run-disabled//')
if [ ${LAUNCH_ARGS} == ${ARGS} ]; then
SKIP_DISABLED=false
else
SKIP_DISABLED=true
fi
echo "skip disabled tests: ${SKIP_DISABLED}"
echo "skip_disabled=${SKIP_DISABLED}" >> $GITHUB_OUTPUT
# extract first line and cut out the "/kickstart-tests" first word
LAUNCH_ARGS=$(echo "$BODY" | sed -n '1 s/^[^ ]* *//p' | sed 's/[[:space:]]*$//')
echo "launch arguments are: $LAUNCH_ARGS"
echo "launch_args=${LAUNCH_ARGS}" >> $GITHUB_OUTPUT
- name: Set KS test arguments
id: ks_test_args
run: |
Expand Down

0 comments on commit 5032c1a

Please sign in to comment.