Skip to content
Snippets Groups Projects
Commit 0027673f authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #24068 TIME 1 add script ci reset approvals

parent 86822dbb
No related branches found
No related tags found
No related merge requests found
...@@ -154,3 +154,15 @@ create_major_tag: ...@@ -154,3 +154,15 @@ create_major_tag:
script: script:
- chmod +x ./ci/new_major_tag.sh - chmod +x ./ci/new_major_tag.sh
- ./ci/new_major_tag.sh - ./ci/new_major_tag.sh
reset_approvals:
image: debian:10-slim
stage: sync
rules:
- if: '$CI_OPEN_MERGE_REQUESTS != null && $CI_PIPELINE_SOURCE == "push"'
before_script:
- apt-get update -yqq > /dev/null
- apt install -y curl
script:
- chmod +x ./ci/reset_approvals.sh
- ./ci/reset_approvals.sh
\ No newline at end of file
#!/bin/bash
MR_ID=`echo $CI_OPEN_MERGE_REQUESTS | grep -oP "!(.)*" | tr -d "!"`
curl --header "PRIVATE-TOKEN: $TOKEN_GITLAB" "https://labs.maarch.org/api/v4/projects/$CI_PROJECT_ID/merge_requests/$MR_ID/reset_approvals"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment