From 608251cbfcf9a3b76421cdd9a7448ab57000b011 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 30 Dec 2024 11:24:55 +0000 Subject: [PATCH] Report - Updates action to peter-eveans/create-pull-request --- .github/workflows/report.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/report.yml b/.github/workflows/report.yml index a2296fc..ba7d6fb 100644 --- a/.github/workflows/report.yml +++ b/.github/workflows/report.yml @@ -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 ' author: 'Elastic Machine ' - 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