Merge branch 'main' of https://github.com/pluwen/awesome-testflight-l… #34
This file contains hidden or 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: | |
| jobs: | |
| main: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install -r scripts/requirements.txt | |
| - name: Prepare status_ordered branch | |
| run: | | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --global user.name "github-actions[bot]" | |
| git checkout status_ordered || git checkout -b status_ordered | |
| git checkout origin/main data/links.json | |
| - name: Order TestFlight Link Status | |
| run: python scripts/order_status.py | |
| - name: Commit and push changes | |
| run: | | |
| if [ -n "$(git status --porcelain)" ]; then | |
| git add . | |
| git commit -m "Auto-order TestFlight links: $(date +'%Y-%m-%d %H:%M:%S')" | |
| git push origin status_ordered | |
| else | |
| echo "No changes to commit" | |
| fi |