diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cd9013..0fda05f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,3 +100,12 @@ jobs: disable_web_page_preview: true message: | disable link preview https://google.com.tw + + - name: sending a message without notification + uses: ./ + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + disable_notification: true + message: | + disable link preview https://google.com.tw diff --git a/Dockerfile b/Dockerfile index 8c9c840..5dddf74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-telegram:1.3.8-linux-amd64 +FROM appleboy/drone-telegram:linux-amd64 COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/README.md b/README.md index f1aac33..c63aae1 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ Remove `args` to send the default message. * message - optional. custom message * message_file - optional. overwrite the default message template with the contents of the specified file. * disable_web_page_preview - optional. disables link previews for links in this message. default is `false`. +* disable_notification - optional. disables notifications for this message, supports sending a message without notification. default is `false`. ## Example diff --git a/action.yml b/action.yml index ac81b3f..1f4afe3 100644 --- a/action.yml +++ b/action.yml @@ -34,6 +34,8 @@ inputs: description: 'message format: markdown or html' disable_web_page_preview: description: 'disables link previews for links in this message' + disable_notification: + description: 'disables notifications for this message, supports sending a message without notification,' runs: using: 'docker' image: 'Dockerfile'