From fe1e87eabf4b77bf4008fc41c296328815b84a40 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Mon, 14 Aug 2023 19:11:53 +0000 Subject: [PATCH] Switch comment to markdown format Signed-off-by: Peter Nied --- .github/workflows/check-compatibility.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-compatibility.yml b/.github/workflows/check-compatibility.yml index 5bd9000245bab..440701f344fb7 100644 --- a/.github/workflows/check-compatibility.yml +++ b/.github/workflows/check-compatibility.yml @@ -15,8 +15,11 @@ jobs: - name: Get results run: | - echo 'Compatibility status:' > ${{ github.workspace }}/results.txt && echo '```' >> ${{ github.workspace }}/results.txt - grep -e 'Compatible components' -e 'Incompatible components' -e 'Components skipped' $HOME/gradlew-check.out >> "${{ github.workspace }}/results.txt" + echo '## Compatibility status:' > ${{ github.workspace }}/results.txt + echo "Checks if related components are compatiable with change $(git rev-parse --short HEAD)}" >> ${{ github.workspace }}/results.txt + echo "### Incompatible components" >> "${{ github.workspace }}/results.txt" && grep -e 'Incompatible component' $HOME/gradlew-check.out | sed -e 's/Incompatible component: \[\(.*\)\]/- \1/' >> "${{ github.workspace }}/results.txt" + echo "### Skipped components" >> "${{ github.workspace }}/results.txt" && grep -e 'Skipped component' $HOME/gradlew-check.out | sed -e 's/Skipped component: \[\(.*\)\]/- \1/' >> "${{ github.workspace }}/results.txt" + echo "### Compatible components" >> "${{ github.workspace }}/results.txt" && grep -e 'Compatible component' $HOME/gradlew-check.out | sed -e 's/Compatible component: \[\(.*\)\]/- \1/' >> "${{ github.workspace }}/results.txt" echo '```' >> ${{ github.workspace }}/results.txt - name: GitHub App token