https://github.com/code-hex/neo-cowsay-action
🐮 GitHub action for cowsay lovers
https://github.com/code-hex/neo-cowsay-action
Last synced: 7 months ago
JSON representation
🐮 GitHub action for cowsay lovers
- Host: GitHub
- URL: https://github.com/code-hex/neo-cowsay-action
- Owner: Code-Hex
- Created: 2019-12-11T12:30:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-13T16:07:52.000Z (about 4 years ago)
- Last Synced: 2025-05-12T19:15:12.380Z (7 months ago)
- Language: Shell
- Homepage:
- Size: 58.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
_________________
< github action!! >
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```
[](https://github.com/Code-Hex/neo-cowsay-action)
Powerd by [🐮 Neo-cowsay](https://github.com/Code-Hex/Neo-cowsay)
## Synopsis
Create Your Workflow
```yaml
jobs:
test:
runs-on: ubuntu-latest
name: A test job to cowsay
steps:
- name: output the message on actions result
uses: Code-Hex/neo-cowsay-action@v1
with:
message: | # Support multi-lines
This is cowsay
Hello, World!!
- name: cowsay on the comment
uses: Code-Hex/neo-cowsay-action@v1
with:
message: 'Hello, World with random'
cow: 'random' # If specified, it shows random ascii art.
cowsay_on_comment: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: output pipeline
id: cowsay_output_id # You want id
uses: Code-Hex/neo-cowsay-action@v1
with:
message: 'Hello, World'
cow: 'gopher' # ascii art list: https://github.com/Code-Hex/Neo-cowsay/tree/master/cows
cowsay_to_output: 'cowsay'
- name: print output
run: |
echo "${{ steps.cowsay_output_id.outputs.cowsay }}"
```
See [Example usage](https://github.com/Code-Hex/Neo-cowsay/pull/10)
## Inputs
- `message` - (Required) the message. what does the cowsay.
- `cow` - (Optional) specify the [cowfile](https://github.com/Code-Hex/Neo-cowsay/tree/master/cows).
- default: `default`
- if you specify `random`, cowsay shows by random ascii-art.
- `cowsay_on_comment` - (Optional) boolean. if true, cowsay shows on the github comment.
- this input needs to set the `GITHUB_TOKEN` environment variable.
- `cowsay_to_output` - (Optional) specify the [output_id](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions#outputs).