From 83bd9ea5ece859ff9129fcd2442fbf4cf54365af Mon Sep 17 00:00:00 2001 From: Phil Asmar Date: Fri, 1 Nov 2024 15:57:30 -0400 Subject: [PATCH] ci: fix release workflow to not fail if no Lambda annotations changes --- .github/workflows/create-release-pr.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index ad5fb3085..dd21dbecb 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -75,7 +75,12 @@ jobs: run: | dotnet build Libraries/Libraries.sln -c Release git add "*.template" - git commit -m "Update test app CloudFormation templates" + + if git diff --cached --quiet; then + echo "No `.template` files were staged; skipping commit." + else + git commit -m "Update test app CloudFormation templates" + fi # Update the changelog based on the change files - name: Update Changelog run: autover changelog