Skip to content

Commit 3d845a6

Browse files
committed
ci: fix commit id
1 parent 36165ef commit 3d845a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/e2e_test_for_prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ 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-
git_hash=${{ github.event.pull_request.head.ref }}
28+
git_hash=${{ github.event.pull_request.head.sha }}
2929
echo $git_hash
3030
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)
3131
echo "Pipeline execution ID: $codepipeline_execution_id"

0 commit comments

Comments
 (0)