Skip to content

Commit

Permalink
fix: Correct log messages for release commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
edahlseng committed Mar 29, 2019
1 parent fa97939 commit d9b32ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ commands:
description: Check commit message for chore(release), halting job if false
steps:
- run:
name: Ensuring commit is not a release commit
name: Ensuring commit is a release commit
command: |
if [[ ! $(git log --format=%B -n 1 $CIRCLE_SHA1 | head -n 1) =~ chore\(release\): ]]; then
echo "Release commit, halting"
echo "Not a release commit, halting"
circleci-agent step halt
fi
halt-if-release-commit:
description: Check commit message for chore(release), halting job if true
steps:
- run:
name: Ensuring commit is a release commit
name: Ensuring commit is not a release commit
command: |
if [[ $(git log --format=%B -n 1 $CIRCLE_SHA1 | head -n 1) =~ chore\(release\): ]]; then
echo "Release commit, halting"
Expand Down

0 comments on commit d9b32ee

Please sign in to comment.