Skip to content

Commit

Permalink
Revert "[github/workflows] Update Metrics to remove NumWorksBot"
Browse files Browse the repository at this point in the history
This reverts commit 110f333.
  • Loading branch information
HugoNumworks authored and EmilieNumworks committed Dec 1, 2020
1 parent 110f333 commit e9b35ef
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/metrics-workflow.yml
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:
Expand All @@ -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 }}

0 comments on commit e9b35ef

Please sign in to comment.