-
Notifications
You must be signed in to change notification settings - Fork 724
36 lines (31 loc) · 1.1 KB
/
PrepareNextIteration.yml
File metadata and controls
36 lines (31 loc) · 1.1 KB
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
name: Prepare Next Development Iteration
on:
workflow_dispatch:
inputs:
nextVersion:
description: Version number of the next iteration
required: true
ticket:
description: "JIRA ticket (ex: SONARJAVA-XXX)"
required: true
jobs:
Next-Iteration-Job:
name: Next Iteration Job
runs-on: ubuntu-latest-large
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 checkout -b gh-action/next-iteration
mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${{ inputs.nextVersion }}"
git commit -m "${{ inputs.ticket }} Prepare next development iteration" -a
git push --set-upstream origin gh-action/next-iteration
gh pr create -B master --title 'Prepare next development iteration' --body ''