-
-
Notifications
You must be signed in to change notification settings - Fork 167
46 lines (41 loc) · 1.31 KB
/
order_status.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
42
43
44
45
46
name: Order TestFilght Link Status
on:
push:
branches:
- main
workflow_dispatch:
inputs:
python_version:
description: '指定 Python 版本 3.6+ (不建议修改)'
required: false
default: '3.11.1'
jobs:
main:
runs-on: ubuntu-latest
env:
python_version: ${{ github.event.inputs.python_version }}
steps:
- uses: actions/[email protected]
- name: Check env
run: if [ -z "$python_version" ]; then python_version='3.11.1'; fi
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ env.python_version }}
architecture: x64
- name: Checkout main -> status_ordered
run: |
git config --global user.email "[email protected]"
git config --global user.name "github_bot"
git pull --unshallow
git checkout status_ordered
git checkout origin/main db/sqlite3.db
- name: Order TestFilght Link Status
run: python scripts/order_status.py
- name: Git commit && push
run: |
git_diff=`git diff`
if [ -z "$git_diff" ]; then echo "Nothing Changed";exit; fi
git add .
git commit -m "Github Action Auto Updated - `date`"
git push origin status_ordered