Skip to content
Snippets Groups Projects
Verified Commit 08f2cd2f authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wip new pipeline

parent 4bce6ddb
Branches
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ in
echo_fail "Error: Could not get git log."
exit 1
fi
set -x
${pkgs'.git}/bin/git fetch --prune --prune-tags
echo_step "Bumping version"
......@@ -63,7 +63,13 @@ in
exit 1
fi
${pkgs'.git}/bin/git tag -a $gitVersion -m"chore: bump version to $gitVersion"
if ${pkgs'.git}/bin/git tag -l | grep -q "$gitVersion"; then
echo_step "Tag $gitVersion existiert bereits. Lösche und setze den Tag neu."
${pkgs'.git}/bin/git tag -d "$gitVersion"
${pkgs'.git}/bin/git push origin --delete "$gitVersion"
fi
${pkgs'.git}/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
${updateChangelogScript}/bin/update-changelog
cd $CI_PROJECT_DIR || exit 1
......@@ -74,7 +80,7 @@ in
${pkgs'.git}/bin/git commit -m "chore: release $gitVersion" CHANGELOG.md ./nix/config/release.nix package.json
${pkgs'.git}/bin/git tag -a $gitVersion -m"chore: bump version to $gitVersion"
${pkgs'.git}/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
${pkgs'.git}/bin/git --no-pager log --decorate=short --pretty=oneline -n 5
${pkgs'.git}/bin/git remote set-url origin https://pad:''${GITLAB_TOKEN}@''${CI_REPOSITORY_URL#*@}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment