-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.12 KB
/
npm_notify_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Node.js Public Release Notes
on:
release:
types:
- published
jobs:
test_develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Log context
uses: actions/github-script@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
console.log(context.payload);
- name: Extract tag name
id: tag
uses: actions/github-script@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
return context.payload.release.tag_name;
- name: send release notes
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_PUBLIC_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
New version of Figma React ${{ steps.tag.outputs.result }} has been released
https://github.com/makamekm/figma-react/releases/tag/${{ steps.tag.outputs.result }}
https://www.npmjs.com/package/figma-react