-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[github/workflows] Update Metrics to remove NumWorksBot"
This reverts commit 110f333.
- Loading branch information
1 parent
110f333
commit e9b35ef
Showing
1 changed file
with
7 additions
and
10 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: Metrics | ||
on: [pull_request_target] | ||
on: [pull_request] | ||
|
||
jobs: | ||
binary-size: | ||
|
@@ -26,14 +26,11 @@ jobs: | |
- name: Retrieve binary size analysis | ||
id: binary_size | ||
run: echo "::set-output name=table::$(python3 head/build/metrics/binary_size.py base/output/release/device/n0110/epsilon.elf head/output/release/device/n0110/epsilon.elf --labels Base Head --sections .text .rodata .bss .data --escape)" | ||
- name: Prepare comment auth | ||
run: echo "::set-env name=GITHUB_TOKEN::$(echo ZGExNWM1YzNlMjVkMWU5ZGFmOWQyY2UxMmRhYjJiN2ZhMWM4ODVhMA== | base64 --decode)" | ||
- name: Add comment | ||
uses: actions/[email protected] | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
await github.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.pull_request.number, | ||
body: `${{ steps.binary_size.outputs.table }}`, | ||
}); | ||
args: comment ${{ steps.binary_size.outputs.table }} |