Skip to content

Commit

Permalink
ci: add a way to push metrics report in PR (#443)
Browse files Browse the repository at this point in the history
* ci: add a way to push metrics report in PR

Signed-off-by: Jérémie Drouet <[email protected]>

* ci: pass base_ref as parameter

Signed-off-by: Jérémie Drouet <[email protected]>

* ci: remove base_ref variable

Signed-off-by: Jérémie Drouet <[email protected]>

* fix: fetch main branch

Signed-off-by: Jérémie Drouet <[email protected]>

* ci: trigger build

Signed-off-by: Jérémie Drouet <[email protected]>

---------

Signed-off-by: Jérémie Drouet <[email protected]>
  • Loading branch information
jdrouet authored Jun 30, 2024
1 parent b28caff commit 4b0b07d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/mrml-cli-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: jdrouet/action-install-git-metrics@main
- uses: jdrouet/action-git-identity@main

Expand Down Expand Up @@ -89,6 +91,10 @@ jobs:
uses: jdrouet/action-execute-git-metrics@main
continue-on-error: true
with:
sync: true
pull: true
push: ${{ github.event_name == 'push' }}
script: |
add binary-size --tag "name: mrml-cli" --tag "platform.os: linux" --tag "platform.arch: x86_64" ${{ steps.binary-size.outputs.value }}
- uses: jdrouet/action-report-git-metrics@main
if: ${{ github.event_name == 'pull_request' }}

0 comments on commit 4b0b07d

Please sign in to comment.