Skip to content

Commit b1d89df

Browse files
Create GitHub workflow to bump development iteration
1 parent d887306 commit b1d89df

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Prepare Next Development Iteration
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
nextVersion:
7+
description: Version number of the next iteration
8+
required: true
9+
10+
jobs:
11+
Next-Iteration-Job:
12+
name: Next Iteration Job
13+
runs-on: ubuntu-latest-large
14+
permissions:
15+
pull-requests: write
16+
contents: write
17+
18+
steps:
19+
20+
- name: Checkout Sources
21+
uses: actions/checkout@v4
22+
23+
- name: Update Version Number
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: |
27+
git config user.name "${GITHUB_ACTOR}"
28+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
29+
git checkout -b gh-action/next-iteration
30+
pushd .
31+
cd integrationTests
32+
mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${{ inputs.nextVersion }}"
33+
popd
34+
sed --in-place "s/version=.*$/version=${{ inputs.nextVersion }}/" gradle.properties
35+
git commit -m "Prepare next development iteration ${{ inputs.nextVersion }}" -a
36+
git push --set-upstream origin gh-action/next-iteration
37+
38+
- name: Create Pull Request
39+
run: |
40+
gh pr create -B master --title "Prepare next development iteration ${{ inputs.nextVersion }}" --body ""

0 commit comments

Comments
 (0)