Update workflows to support 'develop' branch conventions

Added 'develop/*' to branch filters and adjusted conditions to accommodate 'develop' branch-related logic, including versioning and filtering updates. Ensures proper handling of 'develop' branch workflows and aligns with project branching strategy.
This commit is contained in:
Sipke Schoorstra 2025-04-28 19:09:43 +02:00
parent f0b84f8090
commit dacbef13e6
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F

View file

@ -10,6 +10,7 @@ on:
- 'feat/*'
- 'enh/*'
- 'rc/*'
- 'develop/*'
release:
types: [ prereleased, published ]
env:
@ -31,7 +32,7 @@ jobs:
PACKAGE_PREFIX=$(echo $BRANCH_NAME | rev | cut -d/ -f1 | rev | tr '_' '-')
# If the branch name is main, use the preview version. Otherwise, use the branch name as the version prefix.
if [[ "${BRANCH_NAME}" == "main" || "${BRANCH_NAME}" =~ ^rc/ ]]; then
if [[ "${BRANCH_NAME}" == "main" || "${BRANCH_NAME}" =~ ^develop/ ]]; then
PACKAGE_PREFIX="preview"
fi
@ -46,7 +47,7 @@ jobs:
run: |
if [[ "${{ github.ref }}" == refs/tags/* && "${{ github.event_name }}" == "release" && ("${{ github.event.action }}" == "published" || "${{ github.event.action }}" == "prereleased")]]; then
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/rc/3.4.0
git branch --remote --contains | grep origin/develop/3.5.0
else
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/${BRANCH_NAME}