diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f572ed2..3d5494b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,3 +59,11 @@ jobs: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message_file: tests/message.txt + + - name: send message using socks5 proxy URL + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + socks5: 67.204.21.1:64312 + message: Send message from socks5 proxy URL. diff --git a/Dockerfile b/Dockerfile index 8ccf09e..87b2e25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-telegram:1.3.4-linux-amd64 +FROM appleboy/drone-telegram ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/README.md b/README.md index fa767e3..06b88fd 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Remove `args` to send the default message. ## Input variables +* socks5 - optional. support socks5 proxy URL * photo - optional. photo message * document - optional. document message * sticker - optional. sticker message diff --git a/action.yml b/action.yml index 344da7a..ca291d6 100644 --- a/action.yml +++ b/action.yml @@ -10,6 +10,8 @@ inputs: description: 'telegram message' message_file: description: 'overwrite the default message template with the contents of the specified file' + socks5: + description: 'support socks5 proxy URL' photo: description: 'send the photo message.' document: