Skip to content

Commit

Permalink
Merge pull request #74 from smeyer198/version_action
Browse files Browse the repository at this point in the history
Update version workflow by changing the branch creator to merging actor
  • Loading branch information
schlichtig authored Sep 11, 2023
2 parents 84360fa + e86cc58 commit e2936b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ jobs:
- name: Create branch and update CrySL version
if: ${{ env.VERSION_BRANCH_EXISTS == '0' }}
run: |
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
git checkout -b version_${{ steps.versioning.outputs.version }}
mvn build-helper:parse-version versions:set -DnewVersion=\${{ steps.versioning.outputs.version }} versions:commit
mvn tycho-versions:update-eclipse-metadata
git ls-files | grep 'pom.xml$' | xargs git add
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
git commit --allow-empty -am "Update CrySL version to ${{ steps.versioning.outputs.version }}"
git push origin version_${{ steps.versioning.outputs.version }}
# If a PR "version_<version>" -> "master" does not exist, create the PR
Expand Down

0 comments on commit e2936b8

Please sign in to comment.