fix(): revert gitlab ci

This commit is contained in:
gitgernit
2025-11-21 09:43:18 +03:00
parent 2e073146bf
commit 2e0470a833
+2 -9
View File
@@ -110,15 +110,7 @@ cache:
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $WEBHOOK_SECRET_TOKEN" \ -H "Authorization: Bearer $WEBHOOK_SECRET_TOKEN" \
-H "Webhook-Identifier: $WEBHOOK_BYPASS_TOKEN" \ -H "Webhook-Identifier: $WEBHOOK_BYPASS_TOKEN" \
"$WEBHOOK_URL") "$WEBHOOK_URL"
body=$(echo "$response" | sed '$d')
status=$(echo "$response" | tail -n1)
echo "$body"
[ $? -ne 0 ] && echo "curl failed" && exit 1
[ "$status" -lt 200 ] || [ "$status" -ge 300 ] && echo "HTTP $status" && exit 1
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: on_success when: on_success
@@ -352,3 +344,4 @@ workflow:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG