fix(deps): update jackson monorepo to v2.21.3 #131
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: Reports | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'README.md' | |
| - 'CHANGELOG.md' | |
| - 'docs/**' | |
| jobs: | |
| build: | |
| name: Build Report | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} | |
| restore-keys: ${{ runner.os }}-gradle | |
| - name: Build with Gradle | |
| run: ./gradlew buildHealth | |
| - name: Comment PR | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{secrets.GITHUB_TOKEN}} | |
| script: | | |
| const path = 'build/reports/dependency-analysis/build-health-report.txt' | |
| const fs = require('fs') | |
| if (!fs.existsSync(path)) { | |
| console.error('Generated file not found!'); | |
| process.exit(1); | |
| } | |
| const fileContent = fs.readFileSync(path, 'utf8') | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: '```\n' + fileContent + '\n```' | |
| }) |