-
Notifications
You must be signed in to change notification settings - Fork 1.4k
49 lines (44 loc) · 1.31 KB
/
Copy pathbackport.yml
File metadata and controls
49 lines (44 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Backport Pull Requests
on:
schedule:
# Sun 10:00 (JST)
- cron: '0 1 * * 0'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
test:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
continue-on-error: false
strategy:
fail-fast: false
matrix:
ruby-version: ['3.4']
task: ['backport:v1_19']
name: Backport PR ( ${{ matrix.task }} )
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# fetch all history for all branches to execute cherry-pick
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@14594264cd68ce8a2345dd349bc3d138a4ef85c8 # v1.327.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 }}