Skip to content

feat: implement event-based assertion system for durable function testing #46

feat: implement event-based assertion system for durable function testing

feat: implement event-based assertion system for durable function testing #46

name: Update SAM Template
on:
pull_request:
paths:
- "examples/**"
permissions:
contents: write
concurrency:
group: ${{ github.head_ref }}-${{ github.run_id}}-sam-template
cancel-in-progress: true
jobs:
update-template:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install PyYAML
run: pip install PyYAML
- name: Generate SAM template
run: python examples/scripts/generate_sam_template.py
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update SAM template" --no-verify
git push
fi