diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 10ada0510..e3f8ea3da 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -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}