-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (38 loc) · 1.1 KB
/
test-changelog.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: test to generate changelog
# runs on
# * manual trigger
on:
workflow_dispatch:
pull_request:
# global env vars, available in all jobs and steps
env:
MAVEN_OPTS: '-Xmx4g'
jobs:
# creates a PR for bumping the versions to the next snapshot
# only executed if we have created the new release
create-pr:
name: Version upgrade PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: maven
- name: Generate changelog
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./update_changelog.sh
- name: Version bump PR
uses: peter-evans/create-pull-request@v4
env:
GITHUB_TOKEN:
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Bumping version for the next data-api release"
title: "Bumping version for next data-api release"
branch-suffix: "short-commit-hash"
base: "main"