Skip to content

Commit

Permalink
Update test1.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-szrnka authored Nov 15, 2023
1 parent 3e69240 commit eb3417b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,20 @@ jobs:
env:
branch: main
working_directory: ./code/
- name: Update version in pom.xml
- name: Update pom.xml to releaseVersion
run: mvn -B versions:set -DnewVersion=${{ github.event.inputs.releaseVersion }} -DgenerateBackupPoms=false -f ./code/pom.xml
- name: Commit report
- name: Commit version change
run: |
git config --global user.name ${{ secrets.GH_USERNAME }}
git config --global user.email ${{ secrets.GH_EMAIL }}
git commit -am "Version updated to ${{ github.event.inputs.releaseVersion }}"
git push
#- uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: Version updated to ${{ github.event.inputs.releaseVersion }}
- run: echo "TODO Release library in this step"
- name: Update pom.xml to developmentVersion
run: mvn -B versions:set -DnewVersion=${{ github.event.inputs.developmentVersion }} -DgenerateBackupPoms=false -f ./code/pom.xml
- name: Commit version change to next SNAPSHOT version
run: |
git config --global user.name ${{ secrets.GH_USERNAME }}
git config --global user.email ${{ secrets.GH_EMAIL }}
git commit -am "Version updated to ${{ github.event.inputs.developmentVersion }}"
git push

0 comments on commit eb3417b

Please sign in to comment.