Skip to content

Commit

Permalink
fix(bundlewatch): don't pass config parameter when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Feb 21, 2023
1 parent 7226f41 commit 7948d2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundlewatch/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ runs:
echo "CI_COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
- name: 'Check bundle size'
run: npx bundlewatch --config ${{ inputs.config }}
run: |
npx bundlewatch $(if [ -n "${{ inputs.config }}" ]; then echo "--config ${{ inputs.config }}"; fi)
shell: bash
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ inputs.token }}

0 comments on commit 7948d2b

Please sign in to comment.