Revert "chore(release): 6.0.3" #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: send telegram channel message | |
on: | |
push: | |
paths: 'dist/easy-upload.user.js' | |
branches: [master] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm install axios | |
- uses: actions/github-script@v6 | |
with: | |
script: | | |
try { | |
const { default: createTgChannelMsg } = await import('${{ github.workspace }}/scripts/tg-channel.js'); | |
await createTgChannelMsg(core) | |
const axios = require('axios') | |
const text = process.env.tgMsg | |
const response = await axios.post('https://api.telegram.org/bot${{secrets.TG_BOT_TOKEN}}/sendMessage', { | |
"chat_id": "-1001343736144", | |
text, | |
"parse_mode": "HTML" | |
}) | |
}catch(error){ | |
core.setFailed(error.message); | |
} |