Skip to content

Commit c32bc20

Browse files
committed
ci: fix commit id
1 parent 7f4d37c commit c32bc20

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/e2e_test_for_prs.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ jobs:
2020
with:
2121
role-to-assume: ${{secrets.AWS_E2E_ROLE_ARN}}
2222
aws-region: ${{vars.AWS_E2E_REGION}}
23-
- name: Store BRANCH_NAME in Parameter Store
24-
run: |
25-
aws ssm put-parameter --name "/cloudfront-integration-e2e/branch_name" --value "${{github.head_ref}}" --type "String" --overwrite
23+
# - name: Store BRANCH_NAME in Parameter Store
24+
# run: |
25+
# aws ssm put-parameter --name "/cloudfront-integration-e2e/branch_name" --value "${{github.head_ref}}" --type "String" --overwrite
2626
- name: Trigger AWS CodePipeline
2727
run: |
2828
git status
29-
git_hash=$(git rev-parse HEAD)
29+
git_hash=$(git rev-parse --short "$GITHUB_SHA")
30+
echo $git_hash
3031
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)
3132
echo "Pipeline execution ID: $codepipeline_execution_id"
3233
echo "codepipeline_execution_id=$codepipeline_execution_id" >> $GITHUB_ENV

0 commit comments

Comments
 (0)