-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1.35 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
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: JavierSegoviaCordoba/reusable-workflows/actions/checkout@main
- name: Set up Java
uses: JavierSegoviaCordoba/reusable-workflows/actions/setup-java@main
- name: Set up Gradle
uses: JavierSegoviaCordoba/reusable-workflows/actions/setup-gradle@main
- name: Build
run: ./gradlew build -P root.project.name=javiersc-kotlin-template -P semver.stage=snapshot -P semver.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: JavierSegoviaCordoba/reusable-workflows/actions/find-pull-request@main
with:
branch: 'renovate/hubdle'
- name: Auto Approve
if: ${{ (github.event_name == 'pull_request') && (inputs.auto-approve == 'true' || inputs.auto-approve == true) }}
uses: JavierSegoviaCordoba/reusable-workflows/actions/auto-approve@main
with:
github-token: '${{ secrets.TOKEN_GITHUB_ACTION }}'
pull-request-number: ${{ steps.find-pull-request.outputs.number }}