fix(bot): prevent flood wait by caching bot session (#1082)
This stop bot from re-login every run.
This commit is contained in:
8
.github/workflows/build-kernel-arcvm.yml
vendored
8
.github/workflows/build-kernel-arcvm.yml
vendored
@@ -115,6 +115,14 @@ jobs:
|
||||
name: kernel-ARCVM-${{ matrix.arch }}-${{ matrix.version }}
|
||||
path: "${{ env.file_path }}"
|
||||
|
||||
- name: Bot session cache
|
||||
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' }}
|
||||
id: bot_session_cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: scripts/ksubot.session
|
||||
key: ${{ runner.os }}-bot-session
|
||||
|
||||
- name: Post to Telegram
|
||||
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' }}
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user