Set your ENV and write a command including AWS SAM-CLI to cmd
.
cmd
can havebash
command.cmd
can have commands other than sam .
steps:
- name: sam cli
uses: tkt-actions/aws-sam-cli@v1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
with:
cmd: 'sam --version'
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION