diff --git a/action.yml b/action.yml index fd6ba03..66e547e 100644 --- a/action.yml +++ b/action.yml @@ -5,5 +5,5 @@ runs: using: 'docker' image: 'Dockerfile' branding: - icon: 'tool' + icon: 'edit-3' color: 'red' diff --git a/entrypoint.sh b/entrypoint.sh index 2619d2a..3bae855 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,12 @@ -mkdir ._actionshub_problem-matchers -cp /yamllint.json ._actionshub_problem-matchers/yamllint.json -echo "##[add-matcher]._actionshub_problem-matchers/yamllint.json" -yamllint . \ No newline at end of file +#!/bin/bash + +MATCHER_FILE="._actionshub_problem-matchers/yamllint.json" + +mkdir -p ._actionshub_problem-matchers + +if [[ ! -f ${MATCHER_FILE} ]];then + cp /yamllint.json ${MATCHER_FILE} +fi + +echo "##[add-matcher]${MATCHER_FILE}" +yamllint .