File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ for BRANCH in "${BRANCHES[@]}"; do
1515 branch: $BRANCH
1616 env:
1717 DRA_WORKFLOW: snapshot
18+ EOF
19+
20+ # Don't trigger staging workflow for main branch
21+ if [[ " $BRANCH " != " main" ]]; then
22+ cat << EOF
1823 - trigger: elasticsearch-sql-odbc-dra-workflow
1924 label: Trigger DRA staging workflow for $BRANCH
2025 async: true
@@ -23,4 +28,5 @@ for BRANCH in "${BRANCHES[@]}"; do
2328 env:
2429 DRA_WORKFLOW: staging
2530EOF
31+ fi
2632done
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ apiVersion: backstage.io/v1alpha1
7676kind : Resource
7777metadata :
7878 name : buildkite-pipeline-elasticsearch-sql-odbc-dra-workflow-trigger
79- description : Publishes DRA snapshot or staging candidate
79+ description : Triggers piplines for DRA workflows for all release branches
8080 links :
8181 - title : Pipeline
8282 url : https://buildkite.com/elastic/elasticsearch-sql-odbc-dra-workflow-trigger
8888 apiVersion : buildkite.elastic.dev/v1
8989 kind : Pipeline
9090 metadata :
91- description : " Publishes DRA snapshot or staging candidate "
91+ description : Triggers piplines for DRA workflows for all release branches
9292 name : elasticsearch-sql-odbc / dra-workflow-trigger
9393 spec :
9494 repository : elastic/elasticsearch-sql-odbc
You can’t perform that action at this time.
0 commit comments