Skip to content

Bump net.neoforged.moddev from 2.0.73 to 2.0.74 (#104) #155

Bump net.neoforged.moddev from 2.0.73 to 2.0.74 (#104)

Bump net.neoforged.moddev from 2.0.73 to 2.0.74 (#104) #155

name: Spotless Check
on:
pull_request_target:
branches:
- 1.21
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- 1.21
permissions:
contents: read
actions: write
pull-requests: write
jobs:
spotless-check:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
steps:
- name: Checkout PR branch from fork
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Cache Gradle packages (Main Repo Only)
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Generate Gradle wrapper if not present
run: |
if [ ! -f "./gradlew" ]; then
gradle wrapper
fi
- name: Grant execute permission for Gradle wrapper
run: chmod +x ./gradlew
- name: Run Spotless Check
run: ./gradlew spotlessCheck