Skip to content

Commit

Permalink
add git-pr-release (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
orangekame3 authored Sep 4, 2024
1 parent da27c57 commit b214db0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/git-pr-release.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Release <%= Time.now.strftime('%Y-%m-%d %H:%M') %>
> [!CAUTION]
> **Create Merge Commit** is recommended to merge this PR.
<% pull_requests.each do |pr| -%>
- #<%= pr.number %> <%= pr.mention %>
<% end -%>
24 changes: 24 additions & 0 deletions .github/workflows/git-pr-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: git-pr-release
on:
push:
branches:
- develop
jobs:
git-pr-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # git-pr-release needs the git histories
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- run: gem install --no-document git-pr-release
- run: git-pr-release --squashed
env:
GIT_PR_RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PR_RELEASE_BRANCH_PRODUCTION: main
GIT_PR_RELEASE_BRANCH_STAGING: develop
GIT_PR_RELEASE_LABELS: release
GIT_PR_RELEASE_TEMPLATE: .github/git-pr-release.erb
TZ: Asia/Tokyo

0 comments on commit b214db0

Please sign in to comment.