-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.22 KB
/
prepare-snapshot.yml
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
name: Prepare SNAPSHOT
on:
workflow_dispatch:
inputs:
version:
description: 'Next version (-SNAPSHOT will be added automatically)'
required: true
jobs:
prepare:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
cache: maven
- name: Set release version
run: |
mvn -B -ntp -f jgpio/pom.xml versions:set -DnewVersion=${{ github.event.inputs.version }}-SNAPSHOT -DgenerateBackupPoms=false
mvn -B -ntp -f jgpio-it/pom.xml versions:set -DnewVersion=${{ github.event.inputs.version }}-SNAPSHOT -DgenerateBackupPoms=false
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: 'Prepare development ${{ github.event.inputs.version }}-SNAPSHOT'
body: 'Automated preparation of ${{ github.event.inputs.version }}-SNAPSHOT'
commit-message: 'Set version to ${{ github.event.inputs.version }}-SNAPSHOT'
branch: 'snapshot-${{ github.event.inputs.version }}-SNAPSHOT'