Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,22 @@ jobs:
- name: Invalidate Cloudfront
run: aws cloudfront create-invalidation --distribution-id ${{ steps.terragrunt_output.outputs.distribution_id }} --paths "/*"

- name: Auto-commit updated Terraform lockfile
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"

# Only commit the module lockfile — live lockfiles must never exist
git add terragrunt/modules/website/.terraform.lock.hcl

if git diff --cached --quiet; then
echo "No lockfile changes to commit."
else
echo "Committing updated lockfile..."
git commit -m "chore(terraform): update provider lock file"
git push
fi

- name: Check for uncommitted changes
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
Expand All @@ -110,6 +126,8 @@ jobs:
echo "✅ No uncommitted changes after deploy."
fi



- name: Upload lock files on failure
if: failure()
uses: actions/upload-artifact@v7
Expand Down
19 changes: 0 additions & 19 deletions terragrunt/live/website/.terraform.lock.hcl

This file was deleted.