Fix broken Action entrypoint (#2202)

This commit is contained in:
Richard Si 2021-05-06 15:21:13 -04:00 committed by GitHub
parent 5316836393
commit 4b7b5ed5b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,9 @@
#!/bin/bash -e #!/bin/bash -e
if [ -n $INPUT_BLACK_ARGS ]; then if [ -n "$INPUT_BLACK_ARGS" ]; then
echo '::warning::Input `with.black_args` is deprecated. Use `with.options` and `with.src` instead.' echo '::warning::Input `with.black_args` is deprecated. Use `with.options` and `with.src` instead.'
black $INPUT_BLACK_ARGS black $INPUT_BLACK_ARGS
exit $? exit $?
fi
black $INPUT_OPTIONS $INPUT_SRC black $INPUT_OPTIONS $INPUT_SRC