forked from pluwen/awesome-testflight-link
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.5 KB
/
add_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
36
37
38
39
40
41
name: Add A TestFilght Link
on:
workflow_dispatch:
inputs:
app_name:
description: '应用名称(建议填上,程序可能无法通过链接判断 TestFlight 测试的应用名称)【中间不要有英文双引号或英文竖线分隔符"|"】'
required: false
default: 'None'
testflight_link:
description: 'Testflight 公共测试的完整链接(非 TestFilght 链接请添加到 scripts/data/signup.md)'
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/checkout@v3.3.0
- name: Set up Python
uses: actions/setup-python@v4.5.0
with:
python-version: '3.11.1'
architecture: x64
- name: Init Python Env
run: pip install -r scripts/requirements.txt
- name: Add A TestFilght Link
run: python scripts/add_link.py "${{ github.event.inputs.testflight_link }}" "${{ github.event.inputs.table }}" "${{ github.event.inputs.app_name }}"
- name: Git commit && push
run: |
git_diff=`git diff`
if [ -z "$git_diff" ]; then echo "Nothing Changed";exit; fi
git config --global user.email "github_bot@noreply.github.com"
git config --global user.name "github_bot"
git add .
git commit -m "Add A New Link"
git push