Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/PrepareNextIteration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Prepare Next Development Iteration

on:
workflow_dispatch:
inputs:
nextVersion:
description: Version number of the next iteration
required: true

jobs:
Next-Iteration-Job:
name: Next Iteration Job
runs-on: github-ubuntu-latest-s
permissions:
pull-requests: write
contents: write

steps:

- name: Checkout Sources
uses: actions/checkout@v4

- name: Update Version Number
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global core.autocrlf input
git config --global core.safecrlf true
BRANCH="gh-action/next-iteration.${{ github.run_id }}"
git checkout -b "$BRANCH"
mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${{ inputs.nextVersion }}"
git commit -m "Prepare next development iteration ${{ inputs.nextVersion }}" -a
git push --set-upstream origin "$BRANCH"

- name: Create Pull Request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create --base master --title "Prepare next development iteration ${{ inputs.nextVersion }}" --body ''