How do you log a context object?

I would like to log context objects to debug my workflow. How can I do that?

jobs:
  foo:
    steps:
      # How do I see the contents of that object?
      # The follow just prints "object"
      - run: echo "${{ github }}"

Try using the toJSON() function on the object. When constructing run steps keep in mind that the shell treats some of the characters that occur in JSON specially (in particular quotes). :wink: