Skip to content

fix(deps): update kotlin to v2 (major) #292

fix(deps): update kotlin to v2 (major)

fix(deps): update kotlin to v2 (major) #292

Workflow file for this run

name: Run Gradle on PRs
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4
with:
distribution: corretto
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
- name: Run build --scan with Gradle wrapper
id: gradle
env:
BUILD_SCAN_TOS_ACCEPTED: true
run: ./gradlew build --scan
- name: "Add build scan URL as PR comment"
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
if: github.event_name == 'pull_request' && failure()
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '❌ ${{ github.workflow }} failed: ${{ steps.gradle.outputs.build-scan-url }}'
})