Skip to content

Commit ee2f99f

Browse files
committed
Update config.sh
1 parent c7c50da commit ee2f99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function github_commit_exists(){ #github_commit_exists <repo-path> <branch-name>
103103
local repo_path="$1"
104104
local branch_name="$2"
105105
local commit_message="$3"
106-
local commits_found=`curl -s -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" "https://api.github.com/repos/$repo_path/commits/?sha=$branch_name" | jq -r '.[].commit.message' | grep "$commit_message" | wc -l`
106+
local commits_found=`curl -s -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" "https://api.github.com/repos/$repo_path/commits/?sha=$branch_name" | jq -r '.commit.message' | grep "$commit_message" | wc -l`
107107
if [ ! "$commits_found" == "" ] && [ ! "$commits_found" == "null" ] && [ ! "$commits_found" == "0" ]; then echo 1; else echo 0; fi
108108
}
109109

0 commit comments

Comments
 (0)