Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sinologie Anki Pack
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
kartenaale
Sinologie Anki Pack
Commits
bba47bfd
Commit
bba47bfd
authored
Jan 7, 2024
by
Philipp Stadler
Browse files
Options
Downloads
Patches
Plain Diff
fix: avoid problem with non-zero exit code by moving that part into the if
parent
8fa86aa7
No related branches found
No related tags found
1 merge request
!4
Fix/ci exit code
Pipeline
#9590
passed
Jan 7, 2024
Stage: lint
Stage: build
Stage: publish
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-2
1 addition, 2 deletions
.gitlab-ci.yml
with
1 addition
and
2 deletions
.gitlab-ci.yml
+
1
−
2
View file @
bba47bfd
...
@@ -38,8 +38,7 @@ publish-package-json-version-as-git-tag:
...
@@ -38,8 +38,7 @@ publish-package-json-version-as-git-tag:
-
main
-
main
script
:
script
:
-
NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4)
-
NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4)
-
MATCHING_GIT_TAG=$(git tag | grep ^${NPM_VERSION}$)
-
if [ -z $(git tag | grep ^${NPM_VERSION}$) ]; then
-
if [ -z $MATCHING_GIT_TAG ]; then
-
echo adding git tag for first commit on main with NPM version ${NPM_VERSION}
-
echo adding git tag for first commit on main with NPM version ${NPM_VERSION}
-
git remote remove origin
-
git remote remove origin
-
git remote add origin https://oauth:${REPOSITORY_ACCESS_TOKEN}@gitlab.phaidra.org/kartenaale/sinologie-anki-pack.git
-
git remote add origin https://oauth:${REPOSITORY_ACCESS_TOKEN}@gitlab.phaidra.org/kartenaale/sinologie-anki-pack.git
...
...
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