This repository was archived by the owner on Jan 1, 2026. It is now read-only.
Reorganize routes and add register endpoint #18
Workflow file for this run
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: Suggest Version Bump | |
| permissions: | |
| contents: read | |
| statuses: read | |
| pull-requests: read | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - '**/*.py' | |
| - '!**/tests/**' | |
| jobs: | |
| suggest: | |
| uses: ./.github/workflows/detect-changed-versions.yml | |
| labels: | |
| uses: ./.github/workflows/get-pr-labels.yml | |
| analyze: | |
| name: Analyze Changes and Suggest Bumps | |
| needs: | |
| - suggest | |
| - labels | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Determine bump type | |
| id: bump | |
| run: | | |
| LABELS="${{ needs.labels.outputs.labels }}" | |
| BUMP="patch" | |
| echo "$LABELS" | grep -q 'type: feature' && BUMP="minor" | |
| echo "$LABELS" | grep -q 'type: security' && BUMP="minor" | |
| # ... other types | |
| echo "bump=$BUMP" >> "$GITHUB_OUTPUT" | |
| - name: Report summary | |
| if: needs.suggest.outputs.versions != '' | |
| run: | | |
| { | |
| echo "### 🚀 Suggested Version Bumps" | |
| for v in ${{ needs.suggest.outputs.versions }}; do | |
| echo "- \`routes/$v/\`: **${{ steps.bump.outputs.bump }}**" | |
| done | |
| } >> "$GITHUB_STEP_SUMMARY" |