mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-24 23:30:56 -05:00
15 lines
311 B
Bash
Executable file
15 lines
311 B
Bash
Executable file
#!/bin/sh -l
|
|
|
|
if [ ! -z "$INPUT_STRICT" ]; then
|
|
STRICT="-s"
|
|
fi
|
|
|
|
if [ ! -z "$INPUT_CONFIG_FILE" ]; then
|
|
CONFIG_FILE="-c $INPUT_CONFIG_FILE"
|
|
fi
|
|
|
|
if [ ! -z "$INPUT_CONFIG_DATA" ]; then
|
|
CONFIG_DATA="-d $INPUT_CONFIG_DATA"
|
|
fi
|
|
|
|
yamllint $CONFIG_FILE $CONFIG_DATA $INPUT_FORMAT $STRICT $INPUT_FILE_OR_DIR
|