diff --git a/.github/workflows/template_release_version.yml b/.github/workflows/template_release_version.yml index 3af56b34..4de19a48 100644 --- a/.github/workflows/template_release_version.yml +++ b/.github/workflows/template_release_version.yml @@ -49,8 +49,8 @@ jobs: COUNTER=${PARTS[2]} WEEK_FROM_LAST_TAG=${PARTS[1]} - # if we have a new week we start to count from 0 - if [ ${WEEK_FROM_LAST_TAG} != ${WEEK} ]; then + # if we have a new week and the weekly release we start to count from 0 + if [ ${WEEK_FROM_LAST_TAG} != ${WEEK} ] && [ ${{ inputs.format }} == 'weekly' ]; then COUNTER=0 fi