diff --git a/.github/workflows/release-trigger-builds.yml b/.github/workflows/release-trigger-builds.yml index 36189338315..0fbd70c5989 100644 --- a/.github/workflows/release-trigger-builds.yml +++ b/.github/workflows/release-trigger-builds.yml @@ -51,8 +51,9 @@ jobs: COMPONENTS_COLLECT_FULL=("Centreon collect") RUNS_URL="" - if [[ ${{ inputs.dispatch_target_release_branch }} =~ ^release-2[0-9]\.[0-9]+-next$ ]];then - echo "Using ${{ inputs.dispatch_target_release_branch }} as release branch to build testing packages." + # Accept release prefixed or develop branches, nothing else + if [[ ${{ inputs.dispatch_target_release_branch }} =~ ^release-2[0-9]\.[0-9]+-next$ ]] || [[ ${{ inputs.dispatch_target_release_branch }} == "develop" ]];then + echo "Using ${{ inputs.dispatch_target_release_branch }} as branch to build testing packages." RUNS_URL="https://github.com/centreon/centreon-collect/actions?query=branch%3A${{ inputs.dispatch_target_release_branch }}" else echo "::error::Invalid release branch name, please check the release branch name."