Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/releasing/pre-release-checks-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function preReleaseCheckGit() {
logError "you are ahead of origin, please push first and check if CI succeeds before releasing. Following your additional changes:"
git -P log "origin/${branch}..$branch"
if askYesOrNo "Shall I git push for you?"; then
git push
git push || die "was not able to push your changes"
logInfo "please check if your push passes CI and re-execute the release command afterwards"
fi
return 1
Expand Down
2 changes: 1 addition & 1 deletion src/releasing/prepare-files-next-dev-cycle-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function prepareFilesNextDevCycleTemplate() {
-d "$projectsRootDir/src" || return $?

executeIfFunctionNameDefined "$prepare_files_next_dev_afterVersionUpdateHook" "$afterVersionUpdateHookParamPatternLong" \
"${afterVersionHookArgs[@]}"
"${afterVersionHookArgs[@]}" || return $?
}

prepareNextDevCycleTemplate \
Expand Down
4 changes: 2 additions & 2 deletions src/releasing/prepare-next-dev-cycle-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ function prepareNextDevCycleTemplate() {
updateVersionCommonSteps \
"$forReleaseParamPatternLong" false \
"${afterVersionHookArgs[@]}" \
"$versionParamPatternLong" "$devVersion"
"$versionParamPatternLong" "$devVersion" || return $?

executeIfFunctionNameDefined "$afterVersionUpdateHook" "$afterVersionUpdateHookParamPatternLong" \
"${afterVersionHookArgs[@]}"
"${afterVersionHookArgs[@]}" || return $?

# check if we accidentally have broken something, run formatting or whatever is done in beforePr
"$beforePrFn" || return $?
Expand Down
6 changes: 1 addition & 5 deletions src/releasing/release-files-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ function releaseFilesTemplate() {
local release_files_projectsRootDir="$projectsRootDir"
local release_files_afterVersionUpdateHook="$afterVersionUpdateHook"
local release_files_findForSigning="$findForSigning"
local release_files_branch="$branch"

function releaseFilesTemplate_afterVersionHook() {
source "$dir_of_tegonal_scripts/releasing/params/after-version-update-hook.params.source.sh" || traceAndDie "could not source after-version-update-hook.params.source.sh"
Expand All @@ -130,10 +129,7 @@ function releaseFilesTemplate() {
function releaseFilesTemplate_releaseHook() {
local -r gtDir="$release_files_projectsRootDir/.gt"
local -r gpgDir="$gtDir/gpg"
if ! rm -rf "$gpgDir"; then
logError "was not able to remove gpg directory %s\nPlease do this manually and re-run the release command" "$gpgDir"
git reset --hard "origin/$release_files_branch"
fi
rm -rf "$gpgDir" || die "was not able to remove gpg directory %s\nPlease do this manually and re-run the release command" "$gpgDir"
mkdir "$gpgDir"
chmod 700 "$gpgDir"

Expand Down
4 changes: 2 additions & 2 deletions src/releasing/release-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ function releaseTemplate() {

updateVersionCommonSteps \
"$forReleaseParamPatternLong" true \
"${afterVersionHookArgs[@]}"
"${afterVersionHookArgs[@]}" || return $?

executeIfFunctionNameDefined "$afterVersionUpdateHook" "$afterVersionUpdateHookParamPatternLong" \
"${afterVersionHookArgs[@]}"
"${afterVersionHookArgs[@]}" || return $?

# run again since we made changes
"$beforePrFn" || return $?
Expand Down