Open McPatate opened 3 months ago
I am proposing a fix for the CI example in the README.
When someone commits a message containing a ', the CI will error given the raw JSON is simply enclosed with single quotes:
'
jq length <<< '${{ toJson(github.event.commits) }}'
cf https://github.com/huggingface/huggingface.js/pull/754 for more context
make test-community
make lint
All committers have signed the CLA.
What about this? Seems cleaner to not have a temp file or the Env: part of the config:
depth=$(($(jq length <<< "${{ toJson(github.event.commits) }}") + 2)) echo "depth=$depth" >> $GITHUB_ENV
Description:
I am proposing a fix for the CI example in the README.
When someone commits a message containing a
'
, the CI will error given the raw JSON is simply enclosed with single quotes:cf https://github.com/huggingface/huggingface.js/pull/754 for more context
Checklist:
make test-community
)?~make lint
this requires golangci-lint)?~