Skip to content

Commit

Permalink
Signature test
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ committed Jun 7, 2024
1 parent aab000d commit aa3f89f
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/maven-update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,10 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Create a branch
- name: Commit
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git checkout -b issues/prepare-release-${{ github.run_number }}
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: Run Maven release:prepare # https://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html
run: |
echo ${{ inputs.update_type }}
if [ ${{ inputs.update_type }} == "minor" ]; then
mvn -B -U release:prepare -DtagNameFormat=@{project.version} -DprojectVersionPolicyId=SemVerVersionPolicy
elif [ ${{ inputs.update_type }} == "bugfix" ]; then
mvn -B -U release:prepare -DtagNameFormat=@{project.version}
else
echo "Not supported type: ${{ inputs.update_type }}"
exit 1
fi
- name: Push changes
run: |
git push origin issues/prepare-release-${{ github.run_number }}
- name: Create pull request
run: |
gh pr create --base ${{ github.ref_name }} --fill-first
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
git commit --allow-empty -m "Empty commit"
git commit --allow-empty -S -m "Should be verified"
git push

0 comments on commit aa3f89f

Please sign in to comment.