Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

permissions:
contents: read
pull-requests: write

jobs:
build:
Expand Down Expand Up @@ -169,13 +170,13 @@ jobs:

- name: Create Pull Request for Release
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/pulls \
-d '{"title":"Release version ${{ env.NEXT_VERSION }}","body":"This PR updates the project to version ${{ env.NEXT_VERSION }} and sets the next SNAPSHOT version to ${{ env.NEXT_RELEASE_VERSION }}.\n\nThis PR should be squash-merged into main.","head":"${{ env.BRANCH_NAME }}","base":"main"}'
gh pr create \
--title "Release version ${{ env.NEXT_VERSION }}" \
--body "This PR updates the project to version ${{ env.NEXT_VERSION }} and sets the next SNAPSHOT version to ${{ env.NEXT_RELEASE_VERSION }}.\n\nThis PR should be rebased and merged into main." \
--base main \
--head "${{ env.BRANCH_NAME }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Log failure:
- name: JReleaser release output
Expand Down
Loading