Skip to content

Commit 7fd9b53

Browse files
committed
step
1 parent ff0d1fe commit 7fd9b53

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/package_core.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
merge-multiple: true
184184

185185
- run: |
186-
ARTIFACTS=$(jq -cr 'map(.artifact) | unique | .[]' <<< ${ALL_BOARD_DATA})
186+
ARTIFACTS=$(jq -cr 'map(.artifact) | unique | .[]' <<< ${ALL_BOARD_DATA}) # this avoids the 'zephyr' artifact
187187
for artifact in $ARTIFACTS ; do
188188
echo "### \`$artifact\` test results:" >> "$GITHUB_STEP_SUMMARY"
189189
jq -c "map(select(.artifact == \"$artifact\")) | .[]" <<< ${ALL_BOARD_DATA} | while read -r BOARD_DATA; do
@@ -280,19 +280,17 @@ jobs:
280280
with:
281281
fetch-depth: 0
282282
persist-credentials: false
283-
sparse-checkout: |
284-
extra/gen_package_index_json.sh
285-
extra/artifacts/
283+
fetch-tags: true
286284

287285
- uses: actions/download-artifact@v4
288286
with:
289287
name: ${{ env.ALL_CORES_ARTIFACT }}
290288

291289
- name: Prepare package index snippets
292290
run: |
293-
for artifact in $(jq -cr '.[]' <<< ${ARTIFACTS}); do
294-
ARTIFACT_FILE=ArduinoCore-${artifact}-${CORE_HASH}.tar.bz2
295-
PACKAGE_JSON=ArduinoCore-${artifact}-${CORE_TAG}.json
291+
jq -cr '.[]' <<< ${ARTIFACTS} | while read -r artifact; do
292+
ARTIFACT_FILE=ArduinoCore-${artifact}-${CORE_HASH}.tar.bz2
293+
PACKAGE_JSON=ArduinoCore-${artifact}-${CORE_TAG}.json
296294
./extra/gen_package_index_json.sh ${artifact} ${CORE_TAG} ${ARTIFACT_FILE} > ${PACKAGE_JSON}
297295
done
298296

0 commit comments

Comments
 (0)