diff --git a/.github/workflows/e2e_test_for_prs.yml b/.github/workflows/e2e_test_for_prs.yml index a37ad02a..92eb747f 100644 --- a/.github/workflows/e2e_test_for_prs.yml +++ b/.github/workflows/e2e_test_for_prs.yml @@ -25,7 +25,7 @@ jobs: # aws ssm put-parameter --name "/cloudfront-integration-e2e/branch_name" --value "${{github.head_ref}}" --type "String" --overwrite - name: Trigger AWS CodePipeline run: | - git_hash=${{ github.event.pull_request.head.ref }} + git_hash=${{ github.event.pull_request.head.sha }} echo $git_hash codepipeline_execution_id=$(aws codepipeline start-pipeline-execution --name ${{vars.AWS_E2E_TOPIC_BRANCH_CODEPIPELINE_NAME}} --source-revisions actionName=Source,revisionType=COMMIT_ID,revisionValue=$git_hash --query 'pipelineExecutionId' --output text) echo "Pipeline execution ID: $codepipeline_execution_id"