From 7c2b6e34966fd3d8ed4a7ddf47732d79ca579dc0 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 6 Nov 2024 09:43:17 +0900 Subject: [PATCH] PR: troubleshooting the PR not being created --- .github/workflows/pr_from_upstream.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_from_upstream.yml b/.github/workflows/pr_from_upstream.yml index a26104a..70bf760 100644 --- a/.github/workflows/pr_from_upstream.yml +++ b/.github/workflows/pr_from_upstream.yml @@ -76,9 +76,9 @@ jobs: fi # Check if any changes were introduced by the merge - if git diff --exit-code; then + if [ -z "$(git diff --stat)" ]; then echo "No changes detected after merging. Exiting." - exit 0 # Exit the workflow if no changes are detected + exit 0 fi echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV