-
-
Notifications
You must be signed in to change notification settings - Fork 167
35 lines (32 loc) · 1.09 KB
/
del_link.yml
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
name: Del A TestFilght Link
on:
workflow_dispatch:
inputs:
testflight_link:
description: 'Testflight 公共测试的完整链接'
required: true
table:
description: '链接分类(可选值:`macos`, `ios`, `ios_game`, `chinese`)'
required: true
jobs:
main:
runs-on: ubuntu-latest
if: github.repository == 'pluwen/awesome-testflight-link'
steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11.1'
architecture: x64
- name: Del A TestFilght Link
run: python scripts/del_link.py "${{ github.event.inputs.testflight_link }}" "${{ github.event.inputs.table }}"
- name: Git commit && push
run: |
git_diff=`git diff`
if [ -z "$git_diff" ]; then echo "Nothing Changed";exit; fi
git config --global user.email "[email protected]"
git config --global user.name "github_bot"
git add .
git commit -m "Del A TestFilght Link"
git push