Commit 02e33bdf authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix name for spec

parent 69ab1785
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -80,8 +80,11 @@ Publish spec:
     curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/Spec-template%2Edocx/raw?ref=master" >> onem2m_spec_template.docx
    - |
     export SPEC_NAME=$(ls | grep *.md | cut -d'.' -f1)
    - |
     echo $SPEC_NAME
  script:
    - echo 'Publishing spec'
    - echo $SPEC_NAME
    - ./publish_spec.sh ${CI_PROJECT_URL} ${CI_COMMIT_TAG} onem2m_spec_template.docx $SPEC_NAME
  artifacts:
    name: "${SPEC_NAME}_${CI_COMMIT_TAG}"
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ PROJECT_NAME=$(echo $1 | cut -d'/' -f 5- | cut -d'.' -f 1)
echo "HOST URL:" $HOST_URL
echo "PROJECT NAME:" $PROJECT_NAME
echo "TAG NAME:" $2
echo "SPEC NAME:" $4

echo "------ Getting .md file(s) ------"
# If there are no .md files, then simply exit