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

Commit b34b549

Browse files
author
Vianpyro
committed
Refactor workflow jobs: rename detect job for clarity and update dependencies in enforce-version and suggest-version-bump workflows
1 parent 524cb75 commit b34b549

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.github/workflows/detect-changed-versions.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313
value: ${{ jobs.detect.outputs.versions }}
1414

1515
jobs:
16-
detect:
16+
detect-changed-versions:
17+
name: Detect Changed Versions
1718
runs-on: ubuntu-latest
1819
outputs:
1920
versions: ${{ steps.detect.outputs.versions }}
@@ -24,7 +25,7 @@ jobs:
2425
fetch-depth: 0
2526

2627
- name: Detect changed version folders
27-
id: detect
28+
id: list-folders
2829
run: |
2930
git fetch origin main
3031
BASE_SHA=$(git merge-base HEAD origin/main)

.github/workflows/enforce-version.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,24 @@ on:
1414
- '!**/tests/**'
1515

1616
jobs:
17-
detect:
17+
detect-changed-versions:
1818
uses: ./.github/workflows/detect-changed-versions.yml
1919

2020
check-version:
21-
needs: detect
21+
name: Check __version__ Changes
22+
needs: detect-changed-versions
2223
runs-on: ubuntu-latest
23-
if: needs.detect.outputs.versions != ''
24+
if: needs.detect-changed-versions.outputs.versions != ''
2425
steps:
2526
- uses: actions/checkout@v4
2627
with:
2728
fetch-depth: 0
2829

29-
- name: Check __version__ changes
30+
- name: Check __version__ change for each version
3031
run: |
3132
git fetch origin main
3233
BASE_SHA=$(git merge-base HEAD origin/main)
33-
for v in ${{ needs.detect.outputs.versions }}; do
34+
for v in ${{ needs.detect-changed-versions.outputs.versions }}; do
3435
VERSION_CHANGED=$(git diff "$BASE_SHA"...HEAD -- "routes/$v/__init__.py" | grep '__version__ = ' || true)
3536
if [ -z "$VERSION_CHANGED" ]; then
3637
echo "🛑 Version $v changed, but __version__ not updated."

.github/workflows/suggest-version-bump.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ jobs:
1818
uses: ./.github/workflows/get-pr-labels.yml
1919

2020
analyze:
21-
needs: [suggest, labels]
21+
name: Analyze Changes and Suggest Bumps
22+
needs:
23+
- suggest
24+
- labels
2225
runs-on: ubuntu-latest
26+
2327
steps:
2428
- name: Determine bump type
2529
id: bump

.github/workflows/unit-tests.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ jobs:
1515
name: Pytest on ${{ matrix.os }} with Python ${{ matrix.python-version }}
1616
runs-on: ${{ matrix.os }}
1717

18-
permissions:
19-
contents: read
20-
packages: read
21-
statuses: write
22-
2318
strategy:
2419
matrix:
2520
os: [ubuntu-latest, macos-latest, windows-latest]

0 commit comments

Comments
 (0)