Skip to content

Commit 608251c

Browse files
committed
Report - Updates action to peter-eveans/create-pull-request
1 parent 67d0ea9 commit 608251c

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/report.yml

+14-9
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@ on:
66
push:
77
branches:
88
- main
9-
- '8.x'
10-
- '8.17'
11-
- '8.16'
129
jobs:
1310
generate_report:
1411
runs-on: ubuntu-latest
1512
strategy:
1613
matrix:
1714
branch:
18-
- main
15+
- 'main'
1916
- '8.x'
2017
- '8.17'
2118
- '8.16'
@@ -38,11 +35,19 @@ jobs:
3835
run: cd report && bundle exec rake download_all
3936
- name: Generate report
4037
run: cd report && bundle exec rake report
41-
- uses: gr2m/create-or-update-pull-request-action@v1
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
- name: Create Pull Request
39+
uses: peter-evans/create-pull-request@v6
40+
id: cpr
4441
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
4543
commit-message: Updates API report ${{env.REPORT_DATE}} ${{ matrix.branch }}
46-
title: Updates API report
44+
branch: update_report_${{ matrix.branch }}
45+
title: Updates API report ${{ matrix.branch }}
46+
body: 'As titled'
47+
base: ${{ matrix.branch }}
48+
committer: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
4749
author: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
48-
branch: ${{ matrix.branch }}
50+
- name: Pull Request Summary
51+
if: ${{ steps.cpr.outputs.pull-request-url }}
52+
run: |
53+
echo "${{ matrix.branch }} - ${{ steps.cpr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)