Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
KnicKnic committed Jul 29, 2020
1 parent b15f69a commit eb51dfa
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# os-specific-run
[![test](https://github.com/KnicKnic/os-specific-run/workflows/test/badge.svg?branch=master&event=push)](https://github.com/KnicKnic/os-specific-run/actions?query=branch%3Amaster++event%3Apush+)
# os-specific-run

A github action for running a separate command based on the os

```yaml
- uses: knicknic/os-specific-run@v1
with:
macos: echo "Hi from macos"
linux: |
echo "Hi from linux"
echo "Hi from linux second line"
windows: echo "Hi from windows"
```
## Params
Expand All @@ -21,7 +31,7 @@ A github action for running a separate command based on the os
See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell for more details
## Example
## Full Example
```yaml
name: test
Expand Down

0 comments on commit eb51dfa

Please sign in to comment.