update bath action #46
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: Generate Ordered Status Report | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| main: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python with uv | |
| run: uv venv && uv sync --locked | |
| - 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: Generate README with Status Order | |
| run: uv run python scripts/order_status.py | |
| - name: Commit and push changes | |
| run: | | |
| if [ -n "$(git status --porcelain)" ]; then | |
| git add . | |
| git commit -m "Auto-generate ordered README: $(date +'%Y-%m-%d %H:%M:%S')" | |
| git push origin status_ordered | |
| else | |
| echo "No changes to commit" | |
| fi |