Skip to content

Commit

Permalink
Debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Mar 15, 2024
1 parent 437a0e5 commit ddd3bfb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/actions/rebase-dependency-main-branch/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,23 @@ runs:
sed -i 's|<${{ inputs.dependency-short-name }}.version>[^<]*</${{ inputs.dependency-short-name }}.version>|<${{ inputs.dependency-short-name }}.version>${{ steps.rebuild-dependency.outputs.dependency-version }}</${{ inputs.dependency-short-name }}.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

0 comments on commit ddd3bfb

Please sign in to comment.