Skip to content

Commit

Permalink
Merge pull request #21 from jcam1/feature/enable-release-pr
Browse files Browse the repository at this point in the history
Add GitHub Workflow: `create-release-pr`
  • Loading branch information
SeiyaKobayashi authored Aug 23, 2024
2 parents d8b999c + 82021bf commit c6f9e7f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/.git-pr-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Release <%= Time.now %>
<% pull_requests.each do |pr| -%>
- <%= pr.number %> <%= pr.title %> <%= pr.mention %>
<% end -%>
27 changes: 27 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: create a release PR from `develop` to `main`

on:
push:
branches:
- develop

jobs:
create-release-pr:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-ruby@v1
with:
ruby-version: 3.3
- name: Create a release PR
env:
GIT_PR_RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PR_RELEASE_BRANCH_PRODUCTION: main
GIT_PR_RELEASE_BRANCH_STAGING: develop
GIT_PR_RELEASE_TEMPLATE: .github/.git-pr-release
GIT_PR_RELEASE_LABELS: release
TZ: Asia/Tokyo
run: |
gem install -N git-pr-release -v "2.2.0"
git-pr-release --no-fetch

0 comments on commit c6f9e7f

Please sign in to comment.