fix indentation #2
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: Aggregated CI Status | ||
|
Check failure on line 1 in .github/workflows/aggregator.yml
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| jobs: | ||
| description: "List of job names to aggregate" | ||
| required: true | ||
| type: string | ||
| jobs: | ||
| aggregator: | ||
| name: Aggregated CI Status | ||
| runs-on: ubuntu-latest | ||
| if: ${{ always() }} | ||
| needs: ${{ fromJson(inputs.jobs) }} | ||
| steps: | ||
| - name: Aggregate results | ||
| run: | | ||
| failed=() | ||
| for job in ${{ inputs.jobs }}; do | ||
| result=$(eval echo '${{ needs.'$job'.result }}') | ||
| if [ "$result" != "success" ]; then | ||
| failed+=("$job") | ||
| fi | ||
| done | ||
| if [ ${#failed[@]} -ne 0 ]; then | ||
| echo "❌ Failed jobs: ${failed[*]}" | ||
| exit 1 | ||
| fi | ||
| echo "✅ All required jobs succeeded" | ||