From f72f649c29e9fe34118bb1d3435a5552a6171af3 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Wed, 13 Mar 2024 09:24:15 +0100 Subject: [PATCH] update issue templates only during release --- src/releasing/update-version-common-steps.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/releasing/update-version-common-steps.sh b/src/releasing/update-version-common-steps.sh index 32357907..13119a0b 100755 --- a/src/releasing/update-version-common-steps.sh +++ b/src/releasing/update-version-common-steps.sh @@ -115,10 +115,11 @@ function updateVersionCommonSteps() { "$additionalPatternParamPatternLong" "$additionalPattern" \ -d "$script" done - - local -r templateDir="$projectsRootDir/./.github/ISSUE_TEMPLATE" - if [[ -d "$templateDir" ]]; then - updateVersionIssueTemplates "$versionParamPatternLong" "$version" -d "$templateDir" + if [[ $forRelease = true ]]; then + local -r templateDir="$projectsRootDir/./.github/ISSUE_TEMPLATE" + if [[ -d "$templateDir" ]]; then + updateVersionIssueTemplates "$versionParamPatternLong" "$version" -d "$templateDir" + fi fi }