File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 33
44name : Node EC2 Genesis Use Case
55on :
6- workflow_dispatch : # be able to run the workflow on demand
7- push :
8- branches :
9- - genesis-js-release-test
106 workflow_call :
117 inputs :
128 caller-workflow-name :
139 required : true
1410 type : string
15- staging-wheel -name :
11+ staging-instrumentation -name :
1612 required : false
1713 default : ' @aws/aws-distro-opentelemetry-node-autoinstrumentation'
1814 type : string
@@ -43,12 +39,12 @@ jobs:
4339 fetch-depth : 0
4440
4541 - name : Set Get ADOT Instrumentation command environment variable
46- run : echo GET_ADOT_INSTRUMENTATION_COMMAND="aws s3 cp s3://adot-genai-js-test/aws-aws-distro-opentelemetry-node-autoinstrumentation-0.6.0-dev0.tar ./adot-instrumentation.tar --region us-east-1 && npm install ./adot-instrumentation.tar" >> $GITHUB_ENV
47- # if [ "${{ github.event.repository.name }}" = "aws-otel-js-instrumentation" ]; then
48- # echo GET_ADOT_INSTRUMENTATION_COMMAND="aws s3 cp s3://adot-autoinstrumentation-node-staging/${{ env.ADOT_INSTRUMENTATION_NAME }} ./${{ env.ADOT_INSTRUMENTATION_NAME }} --region us-east-1 && npm install ${{ env.ADOT_INSTRUMENTATION_NAME }}" >> $GITHUB_ENV
49- # else
50- # echo GET_ADOT_INSTRUMENTATION_COMMAND="npm install ${{ env.ADOT_INSTRUMENTATION_NAME }}" >> $GITHUB_ENV
51- # fi
42+ run : |
43+ if [ "${{ github.event.repository.name }}" = "aws-otel-js-instrumentation" ]; then
44+ echo GET_ADOT_INSTRUMENTATION_COMMAND="aws s3 cp s3://adot-autoinstrumentation-node-staging/${{ env.ADOT_INSTRUMENTATION_NAME }} ./${{ env.ADOT_INSTRUMENTATION_NAME }} --region us-east-1 && npm install ${{ env.ADOT_INSTRUMENTATION_NAME }}" >> $GITHUB_ENV
45+ else
46+ echo GET_ADOT_INSTRUMENTATION_COMMAND="npm install ${{ env.ADOT_INSTRUMENTATION_NAME }}" >> $GITHUB_ENV
47+ fi
5248
5349 - name : Initiate Gradlew Daemon
5450 uses : ./.github/workflows/actions/execute_and_retry
You can’t perform that action at this time.
0 commit comments