mirror of
https://github.com/zsbai/wechat-versions.git
synced 2026-05-24 23:16:45 +00:00
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:
11
.github/workflows/destversion.yml
vendored
11
.github/workflows/destversion.yml
vendored
@@ -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
|
||||
|
||||
18
.github/workflows/notify.yml
vendored
18
.github/workflows/notify.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user