Skip to content

Merge pull request #67 from snickerjp/update_workflow #6

Merge pull request #67 from snickerjp/update_workflow

Merge pull request #67 from snickerjp/update_workflow #6

name: Create Release PR
on:
push:
branches:
- develop
paths-ignore:
- "**.md"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
issues: write
jobs:
create-release-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Install dependencies
run: |
gem install faraday-retry
gem install git-pr-release --no-document
- name: Configure Git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Create Release PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PR_RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PR_RELEASE_BRANCH_PRODUCTION: main
GIT_PR_RELEASE_BRANCH_STAGING: develop
GIT_PR_RELEASE_TEMPLATE: .github/pr-release/template.erb
GIT_PR_RELEASE_LABELS: release
run: git-pr-release