File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ function github_commit_exists(){ #github_commit_exists <repo-path> <branch-name>
110
110
function github_last_commit(){ # github_last_commit <repo-path> <branch-name>
111
111
local repo_path=" $1 "
112
112
local branch_name=" $2 "
113
- local commit= ` curl -s -k -H " Authorization: token $GITHUB_TOKEN " -H " Accept: application/vnd.github.v3.raw+json" " https://api.github.com/repos/$repo_path /commits/heads/$branch_name " | jq -r ' .sha ' `
113
+ curl -s -k -H " Authorization: token $GITHUB_TOKEN " -H " Accept: application/vnd.github.v3.raw+json" " https://api.github.com/repos/$repo_path /commits/heads/$branch_name "
114
114
if [ ! " $commit " == " " ] && [ ! " $commit " == " null" ]; then
115
115
echo ${commit: 0: 8}
116
116
else
You can’t perform that action at this time.
0 commit comments