Skip to content

Commit

Permalink
ci: attempt to pass branch name as var to codepipeline & remove deplo…
Browse files Browse the repository at this point in the history
…y test branch workflow
  • Loading branch information
necipallef committed Sep 20, 2024
1 parent 706198b commit 11991fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 108 deletions.
107 changes: 0 additions & 107 deletions .github/workflows/deploy_test_branch.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/e2e_test_for_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:
with:
role-to-assume: ${{secrets.AWS_E2E_ROLE_ARN}}
aws-region: ${{vars.AWS_E2E_REGION}}
- name: Store BRANCH_NAME in Parameter Store
run: |
aws ssm put-parameter --name "BRANCH_NAME" --value "${{github.head_ref}}" --type "String" --overwrite
- name: Trigger AWS CodePipeline
run: |
codepipeline_execution_id=$(aws codepipeline start-pipeline-execution --name ${{vars.AWS_E2E_TOPIC_BRANCH_CODEPIPELINE_NAME}} --variables name=BRANCH_NAME,value=${{github.head_ref}} --query 'pipelineExecutionId' --output text)
codepipeline_execution_id=$(aws codepipeline start-pipeline-execution --name ${{vars.AWS_E2E_TOPIC_BRANCH_CODEPIPELINE_NAME}} --query 'pipelineExecutionId' --output text)
echo "Pipeline execution ID: $codepipeline_execution_id"
echo "codepipeline_execution_id=$codepipeline_execution_id" >> $GITHUB_ENV
- name: Poll Pipeline Status
Expand Down

0 comments on commit 11991fb

Please sign in to comment.