Skip to content

chore: Start version 2.1.1-SNAPSHOT #1238

chore: Start version 2.1.1-SNAPSHOT

chore: Start version 2.1.1-SNAPSHOT #1238

Workflow file for this run

---
name: Gradle build
on:
push:
branches:
- main
pull_request:
branches:
- main
pull_request_target:
branches:
- main
permissions:
contents: read
jobs:
build:
name: Gradle build
# If the PR is coming from a fork (pull_request_target), ensure it's opened by "dependabot[bot]".
# Otherwise, clone it normally.
if: |
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]')
runs-on: ubuntu-20.04
steps:
- name: Checkout
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Checkout
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/[email protected]
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/[email protected]
with:
arguments: build