Merge pull request #67 from snickerjp/update_workflow #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |