Skip to content

Commit 36165ef

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/e2e_test_for_prs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +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 status
29-
git_hash=$(git rev-parse --short "$GITHUB_SHA")
28+
git_hash=${{ github.event.pull_request.head.ref }}
3029
echo $git_hash
3130
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)
3231
echo "Pipeline execution ID: $codepipeline_execution_id"

0 commit comments

Comments
 (0)