Update design of composer link preview #6364
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check DB Entities | |
| on: [pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-db-entities: | |
| name: Check DB Entities | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Check out code | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| - uses: GetStream/android-ci-actions/actions/setup-java@main | |
| - name: Find touched DB Entities | |
| id: touchedEntities | |
| continue-on-error: true | |
| run: | | |
| status=$(grep '@Entity' -rinl . | xargs -r git diff-index --name-only --exit-code --output=touchedEntities origin/${{ github.base_ref }} $(); echo $?) | |
| output=$(cat touchedEntities) | |
| output="${output//'%'/'%25'}" | |
| output="${output//$'\n'/'%0A'}" | |
| output="${output//$'\r'/'%0D'}" | |
| echo "$output" | |
| echo "touchedEntities=$output" >> "$GITHUB_OUTPUT" | |
| exit "$status" | |
| - name: Find Comment | |
| uses: peter-evans/find-comment@v2 | |
| id: fc | |
| if: steps.touchedEntities.outcome == 'failure' | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| comment-author: 'github-actions[bot]' | |
| body-includes: DB Entities have been updated. Do we need to upgrade DB Version? | |
| - name: Create or update comment | |
| uses: peter-evans/create-or-update-comment@v2 | |
| if: steps.touchedEntities.outcome == 'failure' | |
| with: | |
| comment-id: ${{ steps.fc.outputs.comment-id }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| DB Entities have been updated. Do we need to upgrade DB Version? | |
| Modified Entities : | |
| ``` | |
| ${{ steps.touchedEntities.outputs.touchedEntities }} | |
| ``` | |
| edit-mode: replace |