File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494 - name : Invalidate Cloudfront
9595 run : aws cloudfront create-invalidation --distribution-id ${{ steps.terragrunt_output.outputs.distribution_id }} --paths "/*"
9696
97- - name : Check for uncommitted changes
98- run : |
99- git config --global --add safe.directory "$GITHUB_WORKSPACE"
100-
101- echo "Git status after build:"
102- git status
103- git diff
104-
105- CHANGES="$(git status --porcelain)"
106- if [ -n "$CHANGES" ]; then
107- echo "❌ Uncommitted changes detected in the repository."
108- echo "These files changed (format: XY path):"
109- echo "$CHANGES"
110-
111- echo "::error::Your deployment produced uncommitted changes. \
112- This usually means something should be added to .gitignore or a lockfile/other tracked file needs updating."
113- exit 1
114- else
115- echo "✅ No uncommitted changes after deploy."
116- fi
117-
You can’t perform that action at this time.
0 commit comments