Prepare Next Development Iteration #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} | |
| NEXT_VERSION: ${{ inputs.nextVersion }} | |
| 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="${NEXT_VERSION}" | |
| git commit -m "Prepare next development iteration ${NEXT_VERSION}" -a | |
| git push --set-upstream origin "$BRANCH" | |
| - name: Create Pull Request | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NEXT_VERSION: ${{ inputs.nextVersion }} | |
| run: | | |
| gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '' |