Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

Test workflows when merging to main branch #3

Test workflows when merging to main branch

Test workflows when merging to main branch #3

name: Suggest Version Bump
permissions:
contents: read
statuses: read
on:
pull_request:
branches: [main]
paths:
- '**/*.py'
- '!**/tests/**'
jobs:
suggest:
uses: ./.github/workflows/detect-changed-versions.yml
labels:

Check failure on line 17 in .github/workflows/suggest-version-bump.yml

View workflow run for this annotation

GitHub Actions / Suggest Version Bump

Invalid workflow file

The workflow is not valid. .github/workflows/suggest-version-bump.yml (Line: 17, Col: 3): Error calling workflow 'TheChocoMax/API/.github/workflows/get-pr-labels.yml@a48dbd497f49d499c0142f886145627c81720f2e'. The workflow is requesting 'pull-requests: read', but is only allowed 'pull-requests: none'.
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"