Skip to content

Commit 3b86d18

Browse files
committed
💚 Attempt to detect command to use...
> Note; this is a little brittle because Ubuntu ain't the only runner > OS available to GitHub Actions
1 parent 6bbcf5a commit 3b86d18

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/units/autoload_proompter_callback_prompt.vader

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
Execute (proompter#callback#prompt#EncodeImagesFromFilePaths -- Reads and encodes a file):
55
let file_path = '/tmp/checkerboard.png'
66

7-
call system("magick -size 1x1 'xc:rgb(0,0,0)' " . file_path)
7+
" TODO: Maybe also inspect `/etc/os-release`
8+
if system('echo $GITHUB_ACTIONS') == 'true'
9+
call system("convert -size 1x1 'xc:rgb(0,0,0)' " . file_path)
10+
else
11+
call system("magick -size 1x1 'xc:rgb(0,0,0)' " . file_path)
12+
endif
813

914
let images = proompter#callback#prompt#EncodeImagesFromFilePaths([
1015
\ file_path,

0 commit comments

Comments
 (0)