We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5898b16 commit 3c3d822Copy full SHA for 3c3d822
1 file changed
.github/workflows/deploy.yml
@@ -110,6 +110,12 @@ jobs:
110
-var="mailgun_apikey=${{ secrets.MAILGUN_API_KEY }}" \
111
-var="backend_image=${{ steps.deploy-vars.outputs.backend_image }}" \
112
-var="frontend_image=${{ steps.deploy-vars.outputs.frontend_image }}"
113
+ terraform show -json tfplan > tfplan.json
114
+ if jq -e '.resource_changes | length == 0' tfplan.json >/dev/null; then
115
+ echo "no_changes=true" >> "$GITHUB_OUTPUT"
116
+ echo "No changes to apply."
117
+ exit 0
118
+ fi
119
120
- name: Upload plan artifact
121
uses: actions/upload-artifact@v4
0 commit comments