Skip to content

I am a GitHub Action that gets a Dad Joke from icanhazdadjoke

License

Notifications You must be signed in to change notification settings

mickeygoussetorg/get-a-dad-joke

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

I am a GitHub Action that gets a Dad Joke from icanhazdadjoke

Resources

License

Stars

Watchers

Forks

Packages

No packages published