-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report - Updates action to peter-eveans/create-pull-request
- Loading branch information
1 parent
67d0ea9
commit 608251c
Showing
1 changed file
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,13 @@ on: | |
push: | ||
branches: | ||
- main | ||
- '8.x' | ||
- '8.17' | ||
- '8.16' | ||
jobs: | ||
generate_report: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
branch: | ||
- main | ||
- 'main' | ||
- '8.x' | ||
- '8.17' | ||
- '8.16' | ||
|
@@ -38,11 +35,19 @@ jobs: | |
run: cd report && bundle exec rake download_all | ||
- name: Generate report | ||
run: cd report && bundle exec rake report | ||
- uses: gr2m/create-or-update-pull-request-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
id: cpr | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Updates API report ${{env.REPORT_DATE}} ${{ matrix.branch }} | ||
title: Updates API report | ||
branch: update_report_${{ matrix.branch }} | ||
title: Updates API report ${{ matrix.branch }} | ||
body: 'As titled' | ||
base: ${{ matrix.branch }} | ||
committer: 'Elastic Machine <[email protected]>' | ||
author: 'Elastic Machine <[email protected]>' | ||
branch: ${{ matrix.branch }} | ||
- name: Pull Request Summary | ||
if: ${{ steps.cpr.outputs.pull-request-url }} | ||
run: | | ||
echo "${{ matrix.branch }} - ${{ steps.cpr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY |