Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya committed Aug 23, 2023
1 parent 91523bb commit eedbc88
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/check-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,25 @@ jobs:
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 "results=$(cat ${{ github.workspace }}/results.txt)" >> "$GITHUB_OUTPUT"
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results.txt
path: ${{ github.workspace }}/results.txt

add-comment:
needs: [build]
permissions:
pull-requests: write # to create or update comment (peter-evans/create-or-update-comment)
runs-on: ubuntu-latest
steps:
- name: Download results
uses: actions/download-artifact@v2
with:
name: results.txt
- name: Add comment on the PR
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.number }}
body-path: "${{ needs.build.outputs.results }}"
body-path: results.txt

0 comments on commit eedbc88

Please sign in to comment.