Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Specification Tools
Scripts
Commits
02e33bdf
Commit
02e33bdf
authored
1 year ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix name for spec
parent
69ab1785
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#400
passed
1 year ago
Stage: generation
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
.gitlab-ci.yml
publish_spec.sh
+1
-0
1 addition, 0 deletions
publish_spec.sh
with
4 additions
and
0 deletions
.gitlab-ci.yml
+
3
−
0
View file @
02e33bdf
...
@@ -80,8 +80,11 @@ Publish spec:
...
@@ -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
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)
export SPEC_NAME=$(ls | grep *.md | cut -d'.' -f1)
-
|
echo $SPEC_NAME
script
:
script
:
-
echo 'Publishing spec'
-
echo 'Publishing spec'
-
echo $SPEC_NAME
-
./publish_spec.sh ${CI_PROJECT_URL} ${CI_COMMIT_TAG} onem2m_spec_template.docx $SPEC_NAME
-
./publish_spec.sh ${CI_PROJECT_URL} ${CI_COMMIT_TAG} onem2m_spec_template.docx $SPEC_NAME
artifacts
:
artifacts
:
name
:
"
${SPEC_NAME}_${CI_COMMIT_TAG}"
name
:
"
${SPEC_NAME}_${CI_COMMIT_TAG}"
...
...
This diff is collapsed.
Click to expand it.
publish_spec.sh
+
1
−
0
View file @
02e33bdf
...
@@ -16,6 +16,7 @@ PROJECT_NAME=$(echo $1 | cut -d'/' -f 5- | cut -d'.' -f 1)
...
@@ -16,6 +16,7 @@ PROJECT_NAME=$(echo $1 | cut -d'/' -f 5- | cut -d'.' -f 1)
echo
"HOST URL:"
$HOST_URL
echo
"HOST URL:"
$HOST_URL
echo
"PROJECT NAME:"
$PROJECT_NAME
echo
"PROJECT NAME:"
$PROJECT_NAME
echo
"TAG NAME:"
$2
echo
"TAG NAME:"
$2
echo
"SPEC NAME:"
$4
echo
"------ Getting .md file(s) ------"
echo
"------ Getting .md file(s) ------"
# If there are no .md files, then simply exit
# If there are no .md files, then simply exit
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment