File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -99,18 +99,27 @@ jobs:
99
99
name : version-info-${{ matrix.version }}
100
100
path : ./versions/
101
101
102
- - if : contains(needs.prepare.outputs.matrix_config, format('"{0}"', matrix.version))
103
- id : combine-outputs
102
+ - id : combine-outputs
104
103
run : |
105
104
# Wait for other matrix jobs to complete by sleeping briefly
106
105
sleep 15
107
106
107
+ # First verify if this is the controlling job
108
+ matrix_json='${{ needs.prepare.outputs.matrix_config }}'
109
+ first_version=$(echo "$matrix_json" | grep -o '"version":"[^"]*"' | sed 's/.*:"//;s/"//' | head -1)
110
+ current_version="${{ matrix.version }}"
111
+
112
+ # Only proceed if this is the controlling job (matches first version)
113
+ if [ "$current_version" != "$first_version" ]; then
114
+ echo "This is not the controlling job. Skipping."
115
+ exit 0
116
+ fi
117
+
108
118
versions_array="["
109
119
tags_array="["
110
120
first=true
111
121
112
122
# Extract versions using grep and sed
113
- matrix_json='${{ needs.prepare.outputs.matrix_config }}'
114
123
versions=$(echo "$matrix_json" | grep -o '"version":"[^"]*"' | sed 's/.*:"//;s/"//')
115
124
116
125
# For each version
You can’t perform that action at this time.
0 commit comments