Skip to content

Commit 318eeb1

Browse files
committed
Report - Updates action to peter-eveans/create-pull-request (backport from main)
1 parent 34a66dd commit 318eeb1

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/report.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,19 @@ jobs:
2727
run: cd report && bundle exec rake download_all
2828
- name: Generate report
2929
run: cd report && bundle exec rake report
30-
- uses: gr2m/create-or-update-pull-request-action@v1
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
- name: Create Pull Request
31+
uses: peter-evans/create-pull-request@v6
32+
id: cpr
3333
with:
34-
commit-message: Updates API report ${{env.REPORT_DATE}}
35-
title: Updates API report
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
commit-message: Updates API report ${{env.REPORT_DATE}} ${{ matrix.branch }}
36+
branch: update_report_${{ matrix.branch }}
37+
title: Updates API report ${{ matrix.branch }}
38+
body: 'As titled'
39+
base: ${{ matrix.branch }}
40+
committer: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
3641
author: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
42+
- name: Pull Request Summary
43+
if: ${{ steps.cpr.outputs.pull-request-url }}
44+
run: |
45+
echo "${{ matrix.branch }} - ${{ steps.cpr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)