Skip to content

Commit e8371db

Browse files
committed
make debug ci e2e trace script more flexible
1 parent 27e0c13 commit e8371db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/debug-ci-e2e-fail.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -o pipefail
1515

1616
DIR="ci-e2e-traces"
1717

18-
COMMIT=$1
18+
COMMIT=$(git rev-parse "$1")
1919

2020
# Get the ID of the last github actions run if there was one. If a commit
2121
# is specified, use that, otherwise
@@ -42,8 +42,8 @@ if [ -e "$DIR/.run" ] && [ "$RUN_ID" == "$(cat $DIR/.run)" ]; then
4242
else
4343
rm -rf $DIR
4444
echo "Downloading traces..."
45-
gh run download $RUN_ID --dir $DIR
46-
echo $RUN_ID > $DIR/.run
45+
gh run download "$RUN_ID" --dir $DIR
46+
echo "$RUN_ID" > $DIR/.run
4747
fi
4848

4949
# gnarly select and re-find is to take filepath noise out of the select list

0 commit comments

Comments
 (0)