mirror of
https://github.com/chapvic/action-telegram-notify.git
synced 2026-01-11 08:51:37 +03:00
Initial commit
This commit is contained in:
27
.github/workflows/build.yml
vendored
Normal file
27
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Build Action
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.21
|
||||
|
||||
- name: Build
|
||||
run: go build -v .
|
||||
|
||||
- name: Send notification
|
||||
uses: chapvic/telegram-notify@master
|
||||
if: always()
|
||||
with:
|
||||
chat: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
status: ${{ job.status }}
|
||||
Reference in New Issue
Block a user