-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.08 KB
/
dependabot-java21.yml
File metadata and controls
43 lines (36 loc) · 1.08 KB
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
name: Dependabot Java 21 Build
on:
pull_request:
paths:
- 'chapter4/knative-springboot/**'
branches:
- main
jobs:
build-java21-dependabot:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup Java 21
uses: actions/setup-java@v5
with:
java-version: 21
distribution: temurin
cache: maven
- name: Build knative-springboot with Java 21
working-directory: chapter4/knative-springboot
run: ./mvnw -B clean verify
- name: Comment on PR
if: success()
uses: actions/github-script@v9
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✅ Java 21 build successful for knative-springboot project'
})
# Made with Bob