File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,14 +324,21 @@ jobs:
324324 role-to-assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
325325 aws-region : us-east-1
326326
327- - name : Create change set for markdown testing
328- id : create-markdown-cs
327+ - name : Create initial stack for markdown testing
329328 uses : aws-actions/aws-cloudformation-github-deploy@v2.0.0-beta
330329 with :
331330 name : test-markdown-${{ github.run_number }}
332331 template : markdown-test-template.yaml
333332 parameter-overrides : " Environment=test"
334333
334+ - name : Update stack to generate markdown output
335+ id : create-markdown-cs
336+ uses : aws-actions/aws-cloudformation-github-deploy@v2.0.0-beta
337+ with :
338+ name : test-markdown-${{ github.run_number }}
339+ template : markdown-test-template.yaml
340+ parameter-overrides : " Environment=gamma" # Change parameter to trigger update
341+
335342 - name : Verify markdown output format
336343 run : |
337344 echo "Markdown Output:"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Resources:
2727 EventTestFunction :
2828 Type : AWS::Lambda::Function
2929 Properties :
30- FunctionName : !Sub "event-test-${Environment}-${AWS::AccountId }"
30+ FunctionName : !Sub "event-test-${Environment}-${AWS::StackName }"
3131 Runtime : python3.9
3232 Handler : index.handler
3333 Role : !GetAtt EventTestRole.Arn
You can’t perform that action at this time.
0 commit comments