The Get A Dad Joke Action is a composite run step custom action that tells you a dad joke. After all, who doesn't love dad jokes, right?
This action makes use of the icanhazdadjoke api to randomly retrieve a joke as a text string. The action will display the joke in the run log, and also output the joke as an output variable, that can be used by other steps.
jobs:
tellmeajoke:
runs-on: ubuntu-latest
steps:
# Get the joke
- id: myjoke
uses: mickeygoussetorg/get-a-dad-joke@v1
# Use the joke output in another step
- name: Output Dad Joke
run: echo "${{ steps.myjoke.outputs.dad-joke }}"
Variable Name | Description |
---|---|
dad-joke | Text string containing the dad joke |