-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.32 KB
/
update-and-push.yml
File metadata and controls
52 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Update and Push Binaries
on:
workflow_dispatch:
inputs:
update_type:
description: 'Component to update'
required: true
type: choice
options:
- all
- scrcpy
- ffmpeg
- ffprobe
default: 'all'
jobs:
update-and-push:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for push.sh
- name: Install dependencies
run: |
brew install p7zip
- name: Run update script
run: |
chmod +x update.sh
./update.sh ${{ github.event.inputs.update_type }}
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Run push script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x push.sh
# Automatically confirm the push (bypass interactive prompt)
echo "yes" | ./push.sh
- name: Send completion notification
if: success()
run: |
curl "${{ secrets.REPORT_URL }}?title=✅ShareBinary已更新${{ github.event.inputs.update_type }}"