-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (43 loc) · 1000 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
###
### Author: ngoanh2n
### https://docs.github.com/en/actions
### https://github.com/marketplace?type=actions
###
name: Build
on:
pull_request:
workflow_dispatch:
jobs:
build:
name: Build on Ubuntu
runs-on: ubuntu-latest
defaults:
run:
shell: bash
permissions:
checks: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Build
run: ./gradlew clean build
dependabot_merge:
name: Merge dependabot PR
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [ build ]
permissions:
contents: write
pull-requests: write
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target: minor
merge-method: rebase