Skip to content

Commit

Permalink
feat: add source and refs inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Gleich <[email protected]>
  • Loading branch information
gleich committed Apr 10, 2021
1 parent d9cd20b commit 5211358
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
| **Input Name** | **Description** | **Required** |
| -------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------ |
| summary | Summary of the pulse | Yes |
| api_key | A api key for rootly | Yes |
| api_key | A API key for rootly | Yes |
| services | Services associated with the pulse. Separate with commas. | No |
| environments | Environments associated with the pulse. Separate with commas. | No |
| labels | Labels associated with the pulse. Separate with commas and separate key-value pair with = (no spaces before or after =). | No |
| source | Source of the pulse | No |
| refs | Refs associated with the pulse. Separate with commas and separate key-value pair with = (no spaces before or after =). | No |

## ⚙️ Example

Expand All @@ -42,7 +44,9 @@ jobs:
with:
api_key: ${{ secrets.ROOTLY_API_KEY }}
summary: Deploy Website
environments: production
services: elasticsearch-prod
labels: platform=osx,version=2
environments: production # Not required
services: elasticsearch-prod # Not required
labels: platform=ubuntu,version=2 # Not required
source: k8s # Not required
refs: sha=cd62148cbc5eb42168fe99fdb50a364e12b206ac, image=registry.rootly.io/rootly/my-service:cd6214 # Not required
```
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inputs:
description: Summary of the pulse
required: true
api_key:
description: A api key for rootly
description: A API key for rootly
required: true
environments:
description: Environments associated with the pulse. Separate with commas.
Expand All @@ -22,3 +22,8 @@ inputs:
labels:
description: Labels associated with the pulse. Separate with commas and separate key-value pair with = (no spaces before or after =).
required: false
source:
description: Source of the pulse
required: false
refs:
description: Refs associated with the pulse. Separate with commas and separate key-value pair with = (no spaces before or after =).

0 comments on commit 5211358

Please sign in to comment.