Skip to content

Commit

Permalink
chore(build): fix build.sh
Browse files Browse the repository at this point in the history
fix build.sh

Signed-off-by: kovacs <[email protected]>
  • Loading branch information
mritd committed Dec 24, 2024
1 parent 4421a46 commit 74bc75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ "${TARGET}" == "alpine" ] || [ "${TARGET}" == "all" ] || [ "${TARGET}" == "
# 触发alpine action
ALPINE_RESPONSE=$(curl -s -X POST -H "Authorization: token $TOKEN" \
"https://api.github.com/repos/$REPO/actions/workflows/alpine.yaml/dispatches" \
-d '{"ref":"main", "inputs": {"trigger": "build"}}')
-d '{"ref":"main"}')

if [ -n "$ALPINE_RESPONSE" ]; then
echo "[$(now)] Alpine workflow triggered: $ALPINE_RESPONSE"
Expand Down Expand Up @@ -58,7 +58,7 @@ if [ "${TARGET}" == "all" ] || [ "${TARGET}" == "" ]; then
do
response=$(curl -s -X POST -H "Authorization: token $TOKEN" \
"https://api.github.com/repos/$REPO/actions/workflows/$workflow_id/dispatches" \
-d '{"ref":"main", "inputs": {"trigger": "build"}}')
-d '{"ref":"main"}')
if [ -n "$response" ]; then
echo "[$(now)] Workflow $workflow_name ($workflow_id): $response"
else
Expand Down

0 comments on commit 74bc75a

Please sign in to comment.