Skip to content

Commit 706198b

Browse files
committed
ci: attempt to pass branch name as var to codepipeline
1 parent 90f4aca commit 706198b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/e2e_test_for_prs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ jobs:
1919
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 #v4.0.2
2020
with:
2121
role-to-assume: ${{secrets.AWS_E2E_ROLE_ARN}}
22-
aws-region: ${{secrets.AWS_E2E_REGION}}
22+
aws-region: ${{vars.AWS_E2E_REGION}}
2323
- name: Trigger AWS CodePipeline
2424
run: |
25-
codepipeline_execution_id=$(aws codepipeline start-pipeline-execution --name ${{vars.AWS_E2E_TOPIC_BRANCH_CODEPIPELINE_NAME}} --query 'pipelineExecutionId' --output text)
25+
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)
2626
echo "Pipeline execution ID: $codepipeline_execution_id"
2727
echo "codepipeline_execution_id=$codepipeline_execution_id" >> $GITHUB_ENV
28-
echo ${{github.head_ref}}
29-
env:
30-
BRANCH_NAME: ${{github.head_ref}}
3128
- name: Poll Pipeline Status
3229
id: poll-status
3330
run: |

0 commit comments

Comments
 (0)