Commit 02718671 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[gitlab-ci] only trigger readthedocs on branch/default

parent 76c8d6c07300
...@@ -37,6 +37,9 @@ trigger-other-pipelines: ...@@ -37,6 +37,9 @@ trigger-other-pipelines:
- "if [ -z \"${TRIGGERED_FROM_OTHER_PROJECT}\" ]; then curl -X POST -F \"variables[TRIGGERED_FROM_OTHER_PROJECT]=true\" -F token=$CUBICWEB_PIPELINE_TRIGGER_TOKEN -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/385/trigger/pipeline; fi" - "if [ -z \"${TRIGGERED_FROM_OTHER_PROJECT}\" ]; then curl -X POST -F \"variables[TRIGGERED_FROM_OTHER_PROJECT]=true\" -F token=$CUBICWEB_PIPELINE_TRIGGER_TOKEN -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/385/trigger/pipeline; fi"
trigger-readthedocs: trigger-readthedocs:
only:
refs:
- branch/default
stage: after-tests stage: after-tests
script: script:
- "if [ -z \"${TRIGGERED_FROM_OTHER_PROJECT}\" ]; then curl -X POST -d \"token=${READTHEDOCS_TOKEN}\" https://readthedocs.org/api/v2/webhook/yams/109442/; fi" - "if [ -z \"${TRIGGERED_FROM_OTHER_PROJECT}\" ]; then curl -X POST -d \"token=${READTHEDOCS_TOKEN}\" https://readthedocs.org/api/v2/webhook/yams/109442/; fi"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment