Skip to content

Commit

Permalink
auto create release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
yathomasi committed May 15, 2023
1 parent 42b6730 commit 6051ca8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ on:
]
default: 'patch'

pull_request:
types: [closed]

jobs:
bump-version-create-pr:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -42,3 +46,14 @@ jobs:
gh pr merge --auto --squash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

create-release:
if: github.event.pull_request.merged && startsWith(github.head_ref, 'bump/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: >
gh release create v$(basename ${{github.head_ref }}) --generate-notes
--draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6051ca8

Please sign in to comment.