Atualizando para Gradle 9.0 #28
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: Popcorn | |
| on: | |
| pull_request: | |
| branches: ["master"] | |
| paths: | |
| - "**/build-logic/**" | |
| - "**.kts" | |
| - "**/popcorn.yml" | |
| jobs: | |
| popcorn: | |
| runs-on: ubuntu-latest | |
| env: | |
| MOVIE_DB_API_TOKEN: ${{ secrets.MOVIE_DB_API_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: ./.github/actions/java | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Run popcorn | |
| id: module_analysis | |
| run: ./gradlew popcornParent -PerrorReportEnabled | |
| - name: Read Markdown file | |
| if: failure() | |
| id: read_md | |
| run: | | |
| content=$(find . -type f -regex ".*/build/reports/popcornguineapig/errorReport.md" -exec cat {} +) | |
| echo "content<<EOF" >> $GITHUB_OUTPUT | |
| echo "$content" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| - name: Post comment with module analysis | |
| if: failure() | |
| uses: thollander/actions-comment-pull-request@v3 | |
| with: | |
| comment-tag: module-analysis-report | |
| message: ${{ steps.read_md.outputs.content }} | |
| - name: Delete comment with module analysis | |
| uses: thollander/actions-comment-pull-request@v3 | |
| with: | |
| comment-tag: module-analysis-report | |
| mode: delete |