File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 77 build :
88 permissions : write-all
99 runs-on : ubuntu-latest
10+ env :
11+ BOT_TOKEN : ${{ secrets.BOT_TOKEN }}
12+ CHANNEL_ID : ${{ secrets.CHANNEL_ID }}
1013 if : github.event_name == 'push' && !contains(github.event.head_commit.message, 'Merge')
1114 steps :
1215 - uses : actions/checkout@v6
6265 tag_name : debug-${{ env.SHORT_SHA }}
6366
6467 - name : Read changelog
65- if : ${{ success() && github.ref == 'refs/heads/master' && github.ref_type != 'tag' && secrets .BOT_TOKEN != '' }}
68+ if : ${{ success() && github.ref == 'refs/heads/master' && github.ref_type != 'tag' && env .BOT_TOKEN != '' }}
6669 id : changelog
6770 uses : actions/github-script@v8
6871 with :
@@ -72,11 +75,11 @@ jobs:
7275 core.setOutput('content', changelog);
7376
7477 - name : Post to Telegram channel
75- if : ${{ success() && github.ref == 'refs/heads/master' && github.ref_type != 'tag' && secrets .BOT_TOKEN != '' }}
78+ if : ${{ success() && github.ref == 'refs/heads/master' && github.ref_type != 'tag' && env .BOT_TOKEN != '' }}
7679 uses : Dev4Mod/telegram-github-action@main
7780 with :
78- to : ${{ secrets .CHANNEL_ID }}
79- token : ${{ secrets .BOT_TOKEN }}
81+ to : ${{ env .CHANNEL_ID }}
82+ token : ${{ env .BOT_TOKEN }}
8083 format : markdown
8184 disable_web_page_preview : true
8285 message : |
You can’t perform that action at this time.
0 commit comments