chore: 让我微调一下()

This commit is contained in:
ikun0014
2024-10-11 21:21:25 +08:00
parent 7135e13fd7
commit f8bc9ace69
2 changed files with 8 additions and 14 deletions

View File

@@ -74,16 +74,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to Telegram Channel
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
${{ github.actor }} created commit:
Commit message: ${{ github.event.commits[0].message }}
Repository: ${{ github.repository }}
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
document: |
build/Onekey---v${{ env.PACKAGE_VERSION }}.exe
run: |
curl -F chat_id=${{ secrets.TELEGRAM_TO }} \
-F document=@build/Onekey---v${{ env.PACKAGE_VERSION }}.exe \
-F caption="${{ github.actor }} created commit:\nCommit message: ${{ github.event.commits[0].message }}\n\nRepository: ${{ github.repository }}\n\nSee changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}" \
-F parse_mode=Markdown \
https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendDocument

View File

@@ -24,7 +24,7 @@ repos = [
def check_system_msg():
os_type = platform.system()
try:
if not os_type == 'Windows':
if os_type != 'Windows':
log.error(f'❌ 不用Windows你想上天{os_type}')
except Exception as e:
log.error(f'❌ 获取系统类型失败:{stack_error(e)}')