File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ commands:
14
14
- run :
15
15
name : Check-skip
16
16
command : |
17
- git log --max-count=1 --pretty=format:"%B" | tr "\n" " " > commit_message.txt
18
- export COMMIT_MESSAGE=$(cat commit_message.txt);
17
+ export git_log=$(git log --max-count=1 --pretty=format:"%B" | tr "\n" " ")
19
18
echo "Got commit message:"
20
- echo "${COMMIT_MESSAGE }"
21
- if [[ -v CIRCLE_PULL_REQUEST ]] && ([[ "$COMMIT_MESSAGE " == *"[skip circle]"* ]] || [[ "$COMMIT_MESSAGE " == *"[circle skip]"* ]]); then
19
+ echo "${git_log }"
20
+ if [[ -v CIRCLE_PULL_REQUEST ]] && ([[ "$git_log " == *"[skip circle]"* ]] || [[ "$git_log " == *"[circle skip]"* ]]); then
22
21
echo "Skip detected, exiting job ${CIRCLE_JOB} for PR ${CIRCLE_PULL_REQUEST}."
23
22
circleci-agent step halt;
24
23
fi
@@ -32,10 +31,10 @@ commands:
32
31
git remote add upstream git://github.com/matplotlib/matplotlib.git
33
32
fi
34
33
git fetch upstream
35
- echo ${CI_PULL_REQUEST//*pull\//} | tee merge.txt
36
- if [[ $(cat merge.txt) != "" ]]; then
37
- echo "Merging $(cat merge.txt )";
38
- git pull --ff-only upstream "refs/pull/$(cat merge.txt) /merge";
34
+ export merge= ${CI_PULL_REQUEST//*pull\//}
35
+ if [[ "$ merge" != "" ]]; then
36
+ echo "Merging ${ merge} )";
37
+ git pull --ff-only upstream "refs/pull/${ merge} /merge";
39
38
fi
40
39
41
40
apt-install :
You can’t perform that action at this time.
0 commit comments