2020-03-31 19:22:19 +02:00
|
|
|
# Gotify Notification Action
|
|
|
|
|
|
|
|
This action allows you to send push notifications via [Gotify](https://gotify.net/).
|
|
|
|
Gotify is an open-source push notification server.
|
|
|
|
|
|
|
|
## Inputs
|
|
|
|
|
|
|
|
### `notification_title`
|
|
|
|
|
|
|
|
**Required** The title of the Gotify notification.
|
|
|
|
|
|
|
|
### `notification_message`
|
|
|
|
|
|
|
|
**Required** The message of the Gotify notification. Default `""`.
|
|
|
|
|
|
|
|
### `notification_priority`
|
|
|
|
|
|
|
|
**Required** The priority of the Gotify notification. Default `4`.
|
|
|
|
|
|
|
|
## Outputs
|
|
|
|
|
|
|
|
This action has no outputs.
|
|
|
|
|
|
|
|
## Secrets
|
|
|
|
|
|
|
|
### `gotify_api_base`
|
|
|
|
|
|
|
|
**Required** The HTTP endpoint where the Gotify API is exposed.
|
|
|
|
|
|
|
|
### `gotify_app_token`
|
|
|
|
|
|
|
|
**Required** The token of the Gotify application.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Create a file `.github/workflows/main.yml` in your repository with the following contents.
|
|
|
|
|
|
|
|
```yaml
|
2020-03-31 19:40:38 +02:00
|
|
|
name: 'Gotify Notification'
|
2020-03-31 19:22:19 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Gotify Notification
|
|
|
|
uses: eikendev/action-gotify@master
|
2020-03-31 20:09:22 +02:00
|
|
|
with:
|
2020-03-31 19:40:38 +02:00
|
|
|
gotify_api_base: '${{ secrets.gotify_api_base }}'
|
|
|
|
gotify_app_token: '${{ secrets.gotify_app_token }}'
|
2020-03-31 19:22:19 +02:00
|
|
|
notification_title: 'Build Complete'
|
|
|
|
notification_message: 'Your build was completed.'
|
|
|
|
```
|
2020-03-31 20:09:22 +02:00
|
|
|
|
|
|
|
Do not forget to define the secrets so the action can complete successfully.
|