@@ -104,6 +104,12 @@ jobs:
104
104
git checkout ${{ env.IDF_BRANCH }} || echo "Using master branch"
105
105
bash ./tools/check-deploy-needed.sh
106
106
107
+ - name : Create artifact id
108
+ id : artifact_id
109
+ run : |
110
+ artifact_id=${{ matrix.idf_branch }}-${{ matrix.target }}
111
+ echo "artifact_id=${artifact_id////_}" >> $GITHUB_ENV
112
+
107
113
- name : Install dependencies
108
114
# if: env.libs_has_commit == '0' || env.ar_has_commit == '0'
109
115
run : bash ./tools/prepare-ci.sh
@@ -123,14 +129,14 @@ jobs:
123
129
if : failure() && (env.libs_has_commit == '0' || env.ar_has_commit == '0')
124
130
uses : actions/upload-artifact@v4
125
131
with :
126
- name : build-${{ matrix.idf_branch }}-${{ matrix.target }}
132
+ name : build-${{ steps.artifact_id.outputs.artifact_id }}
127
133
path : build
128
134
129
135
- name : Upload library files
130
136
# if: env.libs_has_commit == '0' || env.ar_has_commit == '0'
131
137
uses : actions/upload-artifact@v4
132
138
with :
133
- name : libs-${{ matrix.idf_branch }}-${{ matrix.target }}
139
+ name : libs-${{ steps.artifact_id.outputs.artifact_id }}
134
140
path : dist
135
141
136
142
combine-artifacts :
@@ -155,12 +161,18 @@ jobs:
155
161
git checkout ${{ env.IDF_BRANCH }} || echo "Using master branch"
156
162
bash ./tools/check-deploy-needed.sh
157
163
164
+ - name : Create artifact id
165
+ id : artifact_id
166
+ run : |
167
+ artifact_id=${{ matrix.idf_branch }}
168
+ echo "artifact_id=${artifact_id////_}" >> $GITHUB_ENV
169
+
158
170
- name : Download artifacts
159
171
# if: env.libs_has_commit == '0' || env.ar_has_commit == '0'
160
172
uses : actions/download-artifact@v4
161
173
with :
162
174
path : dist
163
- pattern : libs-${{ matrix.idf_branch }}-*
175
+ pattern : libs-${{ steps.artifact_id.outputs.artifact_id }}-*
164
176
merge-multiple : true
165
177
166
178
- name : Combine artifacts
0 commit comments