Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1afbea

Browse files
committed
FIX: Correct CircleCI skip [skip circle] [skip azp] [skip appveyor] [skip actions]
1 parent 34890a0 commit e1afbea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ commands:
2929
- run:
3030
name: Check-skip
3131
command: |
32-
export COMMIT_MESSAGE=$(git log --max-count=1 --skip=1 --pretty=format:"%B" | tr "\n" " ")
32+
git log --max-count=1 --skip=1 --pretty=format:"%B" | tr "\n" " " > commit_message.txt
33+
export COMMIT_MESSAGE=$(cat commit_message.txt);
3334
echo "Got commit message:"
3435
echo "${COMMIT_MESSAGE}"
3536
if [[ -v CIRCLE_PULL_REQUEST ]] && ([[ "$COMMIT_MESSAGE" == *"[skip circle]"* ]] || [[ "$COMMIT_MESSAGE" == *"[circle skip]"* ]]); then

0 commit comments

Comments
 (0)