https://github.com/dosymep/vk-teams-action
GitHub Action for sending a VK Teams notification message.
https://github.com/dosymep/vk-teams-action
Last synced: 4 months ago
JSON representation
GitHub Action for sending a VK Teams notification message.
- Host: GitHub
- URL: https://github.com/dosymep/vk-teams-action
- Owner: dosymep
- License: mit
- Created: 2024-03-28T17:03:00.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T14:24:44.000Z (almost 2 years ago)
- Last Synced: 2025-02-06T10:22:42.608Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# vk-teams action
[](LICENSE.md)
GitHub Action for sending a VK Teams notification message.
## Inputs
- `to` **Required** chat id.
- `token` **Required** bot token.
- `api_url` **Required** bot api url. Default `https://myteam.mail.ru/bot/v1`.
- `message` **Optional** custom message.
- `message_file` **Optional** overwrite the default message template with the contents of the specified file.
- `format` **Optional** message format: `MarkdownV2` or `HTML`. Default `"MarkdownV2"`. See [text formatting](https://teams.vk.com/botapi/tutorial/#Text_Format).
- `file_path` **Optional** send file.
## Outputs
- `response` VK Teams server response.
## Example usage
Default message
```yml
- name: Send message (default)
uses: dosymep/vk-teams-action@v1.0.0
with:
to: ${{ secrets.VK_TEAMS_TO }}
token: ${{ secrets.VK_TEAMS_TOKEN }}
api_url: ${{ secrets.VK_TEAMS_API_URL }}
```
Custom message
```yml
- name: Send message (custom)
uses: dosymep/vk-teams-action@v1.0.0
with:
to: ${{ secrets.VK_TEAMS_TO }}
token: ${{ secrets.VK_TEAMS_TOKEN }}
api_url: ${{ secrets.VK_TEAMS_API_URL }}
message: |
[#42](https://github.com/${{ github.repository }})
[repository](https://github.com/${{ github.repository }})
```