refactor: rewrite destVersionForMac in python; remove redundant code & files; new workflow parameter: Force create release using latest WeChat dmg;

This commit is contained in:
zsbai
2026-02-12 18:29:52 +00:00
parent cee5e1d36a
commit 4f0ca1626e
7 changed files with 501 additions and 336 deletions

View File

@@ -4,15 +4,20 @@ on:
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
inputs:
force_release:
description: 'Force create release (ignore version checks)'
type: boolean
default: false
jobs:
save_new_wechat:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
# - name: Test Github Action Server Time
# run: echo `date`
- name: Check new version and push
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash -x ./scripts/destVersionForMac.sh ${{ github.event.inputs.download_link }}
FORCE_RELEASE: ${{ github.event.inputs.force_release }}
run: python3 ./scripts/destVersionForMac.py

View File

@@ -1,18 +0,0 @@
name: Wechat Release Notify
on:
release:
types: [published]
jobs:
notify_to_tg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check new version and push
env:
GHTOKEN: ${{ secrets.GHTOKEN }}
BOTTOKEN: ${{ secrets.BOTTOKEN }}
CHATIDS: ${{ secrets.CHATIDS }}
run: bash -x ./scripts/notify.sh