Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
Not to repeat allowing PRs break the build... CI build on PRs
  • Loading branch information
tonihele authored Mar 29, 2024
1 parent e07f273 commit b50837f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,34 @@ name: Nightly NBM Deployment
on:
push:
branches: [ master ]
pull_request:

jobs:
build:
BuildSDK:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 21

- name: Validate the Gradle wrapper
- uses: gradle/wrapper-validation-action@v2

- name: Grant execute permission for gradle
run: chmod +x gradlew

- name: Build the SDK
run: ./gradlew buildSdk

NBMDeployment:
needs: [BuildSDK]
runs-on: ubuntu-latest
if: github.event_name == 'push'

steps:
- name: Checkout the nightly-trigger repository
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit b50837f

Please sign in to comment.