Skip to content
Snippets Groups Projects
Commit 0412cf5b authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Protection of branch only run for merge requests

parent 02e33bdf
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,8 @@ Word CR text:
Protect branch:
stage: generation
when: on_success
only:
- merge_requests
script:
- |
curl --request POST --header "PRIVATE-TOKEN: ${ACCESS_TOKEN}" "${CI_API_V4_URL}/projects/${CI_MERGE_REQUEST_PROJECT_ID}/protected_branches?name=${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}&merge_access_level=30"
......@@ -89,7 +91,7 @@ Publish spec:
artifacts:
name: "${SPEC_NAME}_${CI_COMMIT_TAG}"
paths:
- "${SPEC_NAME}_${CI_COMMIT_TAG}.docx"
- ${SPEC_NAME}_${CI_COMMIT_TAG}.docx
pages:
stage: web
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment