Skip to content

Commit 67d0ea9

Browse files
committed
Adds branches to report.yml
Generate the report for all the branches.
1 parent 6ed4ce4 commit 67d0ea9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/report.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ on:
66
push:
77
branches:
88
- main
9+
- '8.x'
10+
- '8.17'
11+
- '8.16'
912
jobs:
1013
generate_report:
1114
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
branch:
18+
- main
19+
- '8.x'
20+
- '8.17'
21+
- '8.16'
1222
steps:
1323
- uses: actions/checkout@v4
1424
with:
1525
persist-credentials: false
26+
ref: ${{ matrix.branch }}
27+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
1628
- uses: ruby/setup-ruby@v1
1729
with:
1830
ruby-version: 3.3
@@ -30,6 +42,7 @@ jobs:
3042
env:
3143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3244
with:
33-
commit-message: Updates API report ${{env.REPORT_DATE}}
45+
commit-message: Updates API report ${{env.REPORT_DATE}} ${{ matrix.branch }}
3446
title: Updates API report
3547
author: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
48+
branch: ${{ matrix.branch }}

0 commit comments

Comments
 (0)