Using GitHub actions to call a REST API

I am attempting to create a GitHub action that calls a REST API and comment the output into a comment on an Issue. I have been unsuccessful so far and am contemplating if it is even possible

It’s very much possible. What do you struggle with?

This is where I am at currently (Using a random API I found online to test things out)

on:
issues:
types:
- opened

jobs:
curl-stmt:
runs-on: ubuntu-latest
outputs:
dog_fact: ${{ steps.get-token.outputs.dog_fact }}
steps:
- id: get-token
run: |
token=$( curl https://dog-api.kinduff.com/api/facts?number=1 | jq ‘.facts’ )
echo “::set-output dog_fact=$token”
print-stmt:
runs-on: ubuntu-latest
needs: curl-stmt
steps:
- run: echo ${{ needs.curl-stmt.outputs.dog_fact }}

The issue I’m having at the moment is the echo statement does not actually show what I need it too