ci: fix release branch naming

This commit is contained in:
Markus Rudy 2023-12-19 20:19:46 +01:00
parent 85a13fab19
commit 004aa6c5ed

View File

@ -32,11 +32,7 @@ jobs:
- name: Determine branch names - name: Determine branch names
run: | run: |
WITHOUT_V=${FULL_VERSION#v} RELEASE_BRANCH="release/${FULL_VERSION%.*}"
PART_MAJOR=${WITHOUT_V%%.*}
PART_MINOR=${WITHOUT_V#*.}
MAJOR_MINOR=${PART_MAJOR}.${PART_MINOR}
RELEASE_BRANCH="release/v${MAJOR_MINOR}"
WORKING_BRANCH="tmp/${FULL_VERSION}" WORKING_BRANCH="tmp/${FULL_VERSION}"
echo "RELEASE_BRANCH=${RELEASE_BRANCH}" | tee -a "$GITHUB_ENV" echo "RELEASE_BRANCH=${RELEASE_BRANCH}" | tee -a "$GITHUB_ENV"
echo "WORKING_BRANCH=${WORKING_BRANCH}" | tee -a "$GITHUB_ENV" echo "WORKING_BRANCH=${WORKING_BRANCH}" | tee -a "$GITHUB_ENV"