File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
# │ │ │ │ │
13
13
# * * * * *
14
14
- cron : ' 0 */6 * * *'
15
+ workflow_dispatch :
15
16
16
17
defaults :
17
18
run :
Original file line number Diff line number Diff line change @@ -134,15 +134,15 @@ function github_pr_exists(){ # github_pr_exists <repo-path> <branch-name>
134
134
function github_release_id(){ # github_release_id <repo-path> <release-tag>
135
135
local repo_path=" $1 "
136
136
local release_tag=" $2 "
137
- local release=` curl -s -k -H " Authorization: token $GITHUB_TOKEN " -H " Accept: application/vnd.github.v3.raw+json" " https://api.github.com/repos/$repo_path /releases" | jq -r ' .[] | select(.tag_name == "$release_tag") | .id' `
137
+ local release=` curl -s -k -H " Authorization: token $GITHUB_TOKEN " -H " Accept: application/vnd.github.v3.raw+json" " https://api.github.com/repos/$repo_path /releases" | jq --arg release_tag " $release_tag " - r ' .[] | select(.tag_name == "$release_tag") | .id' `
138
138
if [ ! " $release " == " " ] && [ ! " $release " == " null" ]; then echo " $release " ; else echo " " ; fi
139
139
}
140
140
141
141
function github_release_asset_id(){ # github_release_asset_id <repo-path> <release-id> <release-file>
142
142
local repo_path=" $1 "
143
143
local release_id=" $2 "
144
144
local release_file=" $3 "
145
- local release_asset=` curl -s -k -H " Authorization: token $GITHUB_TOKEN " -H " Accept: application/vnd.github.v3.raw+json" " https://api.github.com/repos/$repo_path /releases/$release_id /assets" | jq -r ' .[] | select(.name == "$release_file") | .id' `
145
+ local release_asset=` curl -s -k -H " Authorization: token $GITHUB_TOKEN " -H " Accept: application/vnd.github.v3.raw+json" " https://api.github.com/repos/$repo_path /releases/$release_id /assets" | jq --arg release_file " $release_file " - r ' .[] | select(.name == "$release_file") | .id' `
146
146
if [ ! " $release_asset " == " " ] && [ ! " $release_asset " == " null" ]; then echo " $release_asset " ; else echo " " ; fi
147
147
}
148
148
You can’t perform that action at this time.
0 commit comments