refactor: rewrite in Python (#7)

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

* misc: update README file;
This commit is contained in:
baiiylu
2026-02-12 21:39:14 +00:00
committed by GitHub
parent cee5e1d36a
commit 09f7e5317b
7 changed files with 514 additions and 341 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