Skip to content

Commit 083a731

Browse files
committed
ci: try --source-revisions
1 parent 6f5b3dd commit 083a731

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/e2e_test_for_prs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
aws ssm put-parameter --name "/cloudfront-integration-e2e/branch_name" --value "${{github.head_ref}}" --type "String" --overwrite
2626
- name: Trigger AWS CodePipeline
2727
run: |
28-
codepipeline_execution_id=$(aws codepipeline start-pipeline-execution --name ${{vars.AWS_E2E_TOPIC_BRANCH_CODEPIPELINE_NAME}} --query 'pipelineExecutionId' --output text)
28+
git_hash=$(git rev-parse HEAD)
29+
echo git_hash
30+
codepipeline_execution_id=$(aws codepipeline start-pipeline-execution --name ${{vars.AWS_E2E_TOPIC_BRANCH_CODEPIPELINE_NAME}} --source-revisions actionName=string,revisionType=COMMIT_ID,revisionValue=git_hash --query 'pipelineExecutionId' --output text)
2931
echo "Pipeline execution ID: $codepipeline_execution_id"
3032
echo "codepipeline_execution_id=$codepipeline_execution_id" >> $GITHUB_ENV
3133
- name: Poll Pipeline Status

0 commit comments

Comments
 (0)