Skip to content

Commit 6db06d2

Browse files
committed
ci: fix release workflow to not fail if no Lambda annotations changes
1 parent d51554c commit 6db06d2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ jobs:
7575
run: |
7676
dotnet build Libraries/Libraries.sln -c Release
7777
git add "*.template"
78-
git commit -m "Update test app CloudFormation templates"
78+
79+
if git diff --cached --quiet; then
80+
echo "No .template files were staged; skipping commit."
81+
else
82+
git commit -m "Update test app CloudFormation templates"
83+
fi
7984
# Update the changelog based on the change files
8085
- name: Update Changelog
8186
run: autover changelog

0 commit comments

Comments
 (0)