Skip to content

Commit 53db7e3

Browse files
committed
modify workflow
1 parent 1d2a767 commit 53db7e3

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/node-ec2-adot-genesis-test.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33

44
name: Node EC2 Genesis Use Case
55
on:
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

0 commit comments

Comments
 (0)