Skip to content

Commit 842ff18

Browse files
committed
fix main build
1 parent 6f3154c commit 842ff18

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/main-build.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
name: Java Agent Main Build
22
on:
3+
push:
4+
branches:
5+
- main
6+
- "release/v*"
7+
workflow_dispatch: # be able to run the workflow on demand
38
workflow_call:
49
inputs:
5-
caller-workflow-name:
6-
required: true
7-
type: string
810
ref:
911
description: 'The branch, tag or SHA to checkout'
1012
required: false
1113
type: string
1214
default: ''
13-
push:
14-
branches:
15-
- main
16-
- "release/v*"
17-
workflow_dispatch: # be able to run the workflow on demand
1815
env:
1916
AWS_DEFAULT_REGION: us-east-1
2017
STAGING_ECR_REGISTRY: 611364707713.dkr.ecr.us-west-2.amazonaws.com
@@ -283,7 +280,7 @@ jobs:
283280
name: "Publish Main Build Status"
284281
needs: [ build, e2e-test, contract-tests, application-signals-lambda-layer-build, application-signals-e2e-test ]
285282
runs-on: ubuntu-latest
286-
if: always()
283+
if: always() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/v'))
287284
steps:
288285
- name: Configure AWS Credentials for emitting metrics
289286
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0

0 commit comments

Comments
 (0)