Skip to content

Get A Dad Joke

Actions
Everyone loves Dad Jokes! I return a random Dad Joke from icanhazdadjoke
v1
Latest
Star (19)

Tags

 (2)

Get A Dad Joke - A GitHub Action

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.

Example Workflow

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 }}"

Output Variables

Variable Name Description
dad-joke Text string containing the dad joke

Get A Dad Joke is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Everyone loves Dad Jokes! I return a random Dad Joke from icanhazdadjoke
v1
Latest

Tags

 (2)

Get A Dad Joke is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.