From ddd3bfb605aea56dc39d3657aa04699c7ea9434e Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Fri, 15 Mar 2024 20:03:07 +0100 Subject: [PATCH] Debug output --- .github/actions/rebase-dependency-main-branch/action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/actions/rebase-dependency-main-branch/action.yml b/.github/actions/rebase-dependency-main-branch/action.yml index 4e593578f..b49a1f34f 100644 --- a/.github/actions/rebase-dependency-main-branch/action.yml +++ b/.github/actions/rebase-dependency-main-branch/action.yml @@ -107,15 +107,23 @@ runs: sed -i 's|<${{ inputs.dependency-short-name }}.version>[^<]*|<${{ inputs.dependency-short-name }}.version>${{ steps.rebuild-dependency.outputs.dependency-version }}|' pom.xml echo "pom.xml after:" cat pom.xml | head -n 50 + echo "git status before cq:sync-versions" + git status if git diff-index --quiet HEAD --; then echo "${{ inputs.dependency-short-name }}-main uses version ${{ steps.rebuild-dependency.outputs.dependency-version }} already" ./mvnw cq:sync-versions -Dcq.simpleElementWhitespace=AUTODETECT_PREFER_SPACE -N -ntp git add -A + echo "git status before commit" + git status git commit -m "Re-run mvn cq:sync-versions" else ./mvnw cq:sync-versions -Dcq.simpleElementWhitespace=AUTODETECT_PREFER_SPACE -N -ntp if git diff-index --quiet HEAD --; then git add -A + echo "git status before commit" + git status git commit -m "Upgrade ${{ inputs.dependency-short-name }}.version to ${{ steps.rebuild-dependency.outputs.dependency-version }}" fi fi + echo "git status after commit" + git status