diff --git a/.github/workflows/metrics-workflow.yml b/.github/workflows/metrics-workflow.yml index eb99181a1..bc22fcd4b 100644 --- a/.github/workflows/metrics-workflow.yml +++ b/.github/workflows/metrics-workflow.yml @@ -24,10 +24,13 @@ jobs: - name: Build head run: make -j2 -C head epsilon.elf - name: Retrieve binary size analysis - run: echo "::set-env name=BINARY_SIZE::$(python3 head/build/metrics/binary_size.py base/output/release/device/n0110/epsilon.elf head/output/release/device/n0110/epsilon.elf --labels Base Head --escape)" + 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 --escape)" + - name: Prepare comment auth + run: echo "::set-env name=GITHUB_TOKEN::$(echo ZGExNWM1YzNlMjVkMWU5ZGFmOWQyY2UxMmRhYjJiN2ZhMWM4ODVhMA== | base64 --decode)" - name: Add comment uses: actions/github@v1.0.0 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} with: - args: comment ${{ env.BINARY_SIZE }} + args: comment ${{ steps.binary_size.outputs.table }}