-
Notifications
You must be signed in to change notification settings - Fork 25
51 lines (50 loc) · 1.31 KB
/
ci-release-note-generation.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
on:
pull_request:
paths:
- 'release-note-generation/**'
name: release-note-generation-test
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: maven
- run: java -version
- name: Run test in release-note-generation
shell: bash
run: |
mvn -B -ntp verify
working-directory: release-note-generation
env:
GH_TOKEN: ${{ github.token }}
dry-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: maven
- run: java -version
- name: Dry-run release-note-generation
shell: bash
run: |
mvn -B -ntp compile
# This generates release_note.md file
mvn -B -ntp exec:java \
-Dlibraries-bom.version="26.2.0" \
-Dgoogle-cloud-java.version="1.1.0"
working-directory: release-note-generation
env:
GH_TOKEN: ${{ github.token }}
- name: Show generated release note
shell: bash
run: |
# This fails if the file does not exist
cat release_note.md
working-directory: release-note-generation