Skip to content

Update actions/checkout action to v4 #37

Update actions/checkout action to v4

Update actions/checkout action to v4 #37

Workflow file for this run

name: Spotless Apply
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin"
- name: Run Spotless Apply
uses: gradle/gradle-build-action@v2
with:
arguments: spotlessApply
- name: Commit Changes
uses: EndBug/add-and-commit@v9
with:
message: "[CI] Spotless Apply"
committer_name: "GitHub Actions"
committer_email: "actions@github.com"