Skip to content

Commit 0f54bae

Browse files
committed
ci: fix telegram notify script
1 parent eec2ee9 commit 0f54bae

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/scripts/telegram-notify.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const fetch = require('node-fetch')
2-
const fs = require('fs')
1+
import fs from 'fs'
32

43
const {
54
TELEGRAM_BOT_TOKEN,

.github/workflows/notify.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ env:
2424
GITHUB_EVENT_PATH: ${{ github.event_path }}
2525

2626
jobs:
27-
telegram-notify:
27+
telegram:
2828
name: Telegram Notification
2929
runs-on: ubuntu-latest
3030

@@ -37,8 +37,5 @@ jobs:
3737
with:
3838
node-version: ${{ env.NODE_VERSION }}
3939

40-
- name: Install dependencies
41-
run: npm install node-fetch
42-
4340
- name: Send Telegram notification
4441
run: node .github/scripts/telegram-notify.js

0 commit comments

Comments
 (0)