Skip to content

Backport Pull Requests #8

Backport Pull Requests

Backport Pull Requests #8

Workflow file for this run

name: Backport Pull Requests
on:
schedule:
# Sun 10:00 (JST)
- cron: '0 1 * * 0'
workflow_dispatch:
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: false
strategy:
fail-fast: false
matrix:
ruby-version: ['3.4']
task: ['backport:v1_16', 'backport:v1_19']
name: Backport PR ( ${{ matrix.task }} )
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
# fetch all history for all branches to execute cherry-pick
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Set up git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Run backport task ( ${{ matrix.task }} )
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bundle exec rake ${{ matrix.task }}