mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-06-11 14:07:54 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 40cbdc99a4 | |||
| ac4245365c | |||
| 06cc7371ce | |||
| b535a89bc8 | |||
| 696643cdf6 | |||
| bd65e6f3ea |
@@ -6,7 +6,7 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
- name: send custom message with args
|
- name: send custom message with args
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
env:
|
env:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM appleboy/drone-telegram:1.3.1-linux-amd64
|
FROM appleboy/drone-telegram:1.3.2-linux-amd64
|
||||||
|
|
||||||
ADD entrypoint.sh /entrypoint.sh
|
ADD entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|||||||
@@ -1,23 +1,32 @@
|
|||||||
# 🚀 Telegram for GitHub Actions
|
# 🚀 Telegram for GitHub Actions
|
||||||
|
|
||||||
[GitHub Action](https://developer.github.com/actions/) for sending a Telegram notification message.
|
[GitHub Action](https://github.com/features/actions) for sending a Telegram notification message.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
[](https://github.com/appleboy/facebook-action/actions)
|
[](https://github.com/appleboy/facebook-action/actions)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Send custom message and see the custom variable as blow.
|
Send custom message and see the custom variable as blow.
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: send custom message
|
name: telegram message
|
||||||
uses: appleboy/telegram-action@master
|
on: [push]
|
||||||
env:
|
jobs:
|
||||||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
|
||||||
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
|
build:
|
||||||
with:
|
name: Build
|
||||||
args: The ${{ github.event_name }} event triggered first step.
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: send custom message with args
|
||||||
|
uses: appleboy/telegram-action@master
|
||||||
|
env:
|
||||||
|
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
|
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
|
||||||
|
with:
|
||||||
|
args: The ${{ github.event_name }} event triggered first step.
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove `args` to send the default message.
|
Remove `args` to send the default message.
|
||||||
@@ -50,6 +59,7 @@ Remove `args` to send the default message.
|
|||||||
send photo message:
|
send photo message:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
- uses: actions/checkout@master
|
||||||
- name: send photo message
|
- name: send photo message
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user