Skip to content

Commit b621ca3

Browse files
authored
Root job added for validation
1 parent f3de9a5 commit b621ca3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,24 @@ on:
66
- main
77

88
jobs:
9+
pre-checks:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Validate Workflow Trigger
13+
run: echo "Starting the release workflow..."
14+
915
check-tests:
1016
runs-on: ubuntu-latest
11-
needs: test # Wait for test jobs to finish first
17+
needs: pre-checks # ✅ Now this job depends on pre-checks instead of nothing
1218

1319
steps:
1420
- name: Download All Test Results
1521
uses: actions/download-artifact@v4
1622
with:
17-
path: test-results # Store all test result files here
23+
path: test-results # Store test results here
1824

19-
- name: Merge Test Results
20-
id: merge_tests
25+
- name: Aggregate Test Results
26+
id: aggregate_tests
2127
run: |
2228
FAILED_TESTS=0
2329
for file in test-results/*/test_result_*; do
@@ -51,7 +57,7 @@ jobs:
5157
- name: Read Current Version
5258
id: get_version
5359
run: |
54-
VERSION=$(grep -oP '^__version__ = "\K[^"]+' cli_monitor.py)
60+
VERSION=$(grep -m 1 '^__version__ =' cli_monitor.py | awk -F'=' '{print $2}' | sed 's/[^0-9.]//g')
5561
echo "CURRENT_VERSION=$VERSION" >> $GITHUB_ENV
5662
5763
- name: Determine Version Increment

0 commit comments

Comments
 (0)