Skip to content

Commit

Permalink
ci: run: Fix for infinite run of commit msg lint on master
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer290399 committed Jul 28, 2021
1 parent d297885 commit 0d04237
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ function run_style() {
}

function run_commit(){
dffml service dev lint commits
BRANCH="$(echo $GITHUB_REF | cut -d'/' -f 3)"
echo "On Branch: ${BRANCH}"
if [[ "$BRANCH" != "master" ]]; then
dffml service dev lint commits
fi
}

function run_docs() {
Expand Down

0 comments on commit 0d04237

Please sign in to comment.