An open API service indexing awesome lists of open source software.

https://github.com/roharon/action-swit

Support your ChatOps with Swit Messenger for GitHub Actions
https://github.com/roharon/action-swit

collaboration github github-action github-actions swit webhook

Last synced: 9 months ago
JSON representation

Support your ChatOps with Swit Messenger for GitHub Actions

Awesome Lists containing this project

README

          

# Swit for Github Action

![Publish Docker Image](https://github.com/roharon/action-swit/workflows/Publish%20Docker%20Image/badge.svg?branch=v1)
[![GitHub Releases](https://img.shields.io/github/release/roharon/action-swit.svg)](https://github.com/roharon/action-swit/releases)

Send a message to Swit using Github Actions

## Inputs

### `webhooks_url`

**Required** Your App's webhooks_url

### `message`

The message send to swit. Default
`"🏷 ${{ job.status }} ${{ github.sha }} - by ${{ github.actor }}"`

*[You can search github action's **context** on here](https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts)*

## Example Usage

```yml
uses: roharon/action-swit@v1
with:
webhooks_url: "https://hook.swit.io/chat/~~~/~~~"
```

You can find Message on Swit like this.

![image](https://user-images.githubusercontent.com/4939738/85041145-8289d980-b1c4-11ea-94fb-36f89cbef31a.png)

## How to get my webhooks_url?

First, [Create your swit app](https://developers.swit.io/apps)

Second, Enable Webhook URL & Click Add New Webhook

*Choose channel or project you want 🙃*
![image](https://user-images.githubusercontent.com/4939738/84921445-72f48d00-b0ff-11ea-9d59-e8b5169e7d74.png)