Skip to content

Commit

Permalink
Uprev action Dockerfile, minor improvments to test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosperate committed Feb 1, 2023
1 parent c43cd6a commit 2f6b48d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python -c "import os; \
action_op = b'${{ steps.diff-same.outputs.bloaty-output-encoded }}'; \
expected = b' FILE SIZE VM SIZE \n -------------- -------------- \n [ = ] 0 [ = ] 0 TOTAL\n'; \
exit(not action_op == expected)"
exit(0 if action_op == expected else 1)"
- name: Add 'bloaty --help' output to GitHub Workflow summary
run: |
echo Adding summary from workflow >> $GITHUB_STEP_SUMMARY
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ghcr.io/carlosperate/bloaty:latest

LABEL "version"="0.1.0"
LABEL "version"="0.2.0"
LABEL org.opencontainers.image.title="Bloaty McBloatface GitHub Action"
LABEL org.opencontainers.image.description="GitHub Action using Docker to run Bloaty McBloatface: a size profiler for binaries."
LABEL org.opencontainers.image.authors="Carlos Pereira Atencio <[email protected]>"
Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ runs:
using: docker
image: Dockerfile
args:
# Old format used before the Python script was added
# Echo in the format required to set action output | send to envvar & stdout | remove the prefix | echo with e flag to print with new lines
#- echo bloaty-output=$(bloaty ${{ inputs.bloaty-args }}) | tee -a $GITHUB_OUTPUT | sed "s/^bloaty-output=//" | xargs -0 echo -e
- ${{ inputs.bloaty-args }}

0 comments on commit 2f6b48d

Please sign in to comment.