You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/04/20 06:43:37 UTC

[GitHub] [pulsar] lhotari edited a comment on pull request #10276: [GitHub Actions] Fix logic that was incorrectly skipping tests

lhotari edited a comment on pull request #10276:
URL: https://github.com/apache/pulsar/pull/10276#issuecomment-823017306


   Just sharing more from the documentation: It that seems [`fromJSON`](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#fromjson) function would also be a way to parse a number in a string as a number.
   
   something like this could possibly work too. 
   
   ```
   if: ${{ fromJSON(steps.changes.outputs.all_count) > fromJSON(steps.changes.outputs.docs_count) }}
   ```
   (I think this is very verbose compared to the solution in this PR)
   
   `fromJSON("40") > fromJSON("7")` -> `40 > 7` -> `true`
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org