https://github.com/karancode/funghaction
Fun Github Action
https://github.com/karancode/funghaction
42 fun github-actions
Last synced: about 2 months ago
JSON representation
Fun Github Action
- Host: GitHub
- URL: https://github.com/karancode/funghaction
- Owner: karancode
- License: mit
- Created: 2020-09-13T17:36:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-09-15T17:16:32.000Z (over 5 years ago)
- Last Synced: 2025-10-15T20:07:42.225Z (8 months ago)
- Topics: 42, fun, github-actions
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Funghaction (Fun Gtihub Action) (Pronounced as fung-action :fireworks:)
`Funghaction` comments any random _quote/joke/fact_ to your Pull Request comment. :sunglasses: :laughing: :astonished:
## Success Criteria
An exit code of `0` is considered a successful execution.
## Usage
The most common usage is to use `Funghaction` with fun type `random`. This will randomly chose either of `quote`/`joke`/`fact`. Acorrdingly a comment will be posted to the pull request depending on the fun typ. This workflow can be configured by adding the following content to the GitHub Actions workflow YAML file.
```yaml
name: 'Funghaction'
on:
- pull_request
jobs:
fun:
name: 'Fun'
runs-on: ubuntu-latest
steps:
- name: 'Fun'
uses: karancode/funghaction@42
env:
GITHUB_TOKEN: ${{ secret.GITHUB_TOKEN }}
```
Just it! :grin:
## Input
* `fun` - (Optional)) Fun type. One of _[`quote`,`fact`,`joke`]_.
## Output
* `fun_ouput` - The Funghaction comment content.