add action_cn version #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |