-
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (46 loc) · 1.36 KB
/
build.yaml
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
44
45
46
47
48
49
50
51
52
53
54
name: build
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up Java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 11
- name: Build
uses: gradle/[email protected]
with:
arguments: |
build
-Proot.project.name=javiersc-kotlin-template
-Psemver.stage=snapshot
-Psemver.scope=patch
- name: Find Pull Request
if: ${{ (github.event_name == 'pull_request') && (inputs.auto-approve == 'true' || inputs.auto-approve == true) }}
id: find-pull-request
uses: juliangruber/[email protected]
with:
branch: renovate/hubdle
- name: Auto Approve
if: ${{ (github.event_name == 'pull_request') && (inputs.auto-approve == 'true' || inputs.auto-approve == true) }}
uses: hmarr/[email protected]
with:
github-token: '${{ secrets.TOKEN_GITHUB_ACTION }}'
pull-request-number: ${{ steps.find-pull-request.outputs.number }}
review-message: "Auto approved"