Skip to content

Commit ba01531

Browse files
committed
try2
1 parent 05db2a7 commit ba01531

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/package_core.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ jobs:
3838
- name: Use west repo cache
3939
uses: actions/cache/restore@v4
4040
with:
41-
path: "*"
42-
key: west-git-${{ github.event.repository.updated_at }}
43-
restore-keys: west-git-
41+
path: "**/.git"
42+
key: west-git-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
43+
restore-keys: |
44+
west-git-
4445
4546
- name: Initialize
4647
run: |
@@ -67,8 +68,8 @@ jobs:
6768
- name: Save west repo cache
6869
uses: actions/cache/save@v4
6970
with:
70-
path: "/home/runner/work/**/.git"
71-
key: west-git-${{ github.event.repository.updated_at }}
71+
path: "**/.git"
72+
key: west-git-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
7273

7374
test-core:
7475
name: Test ${{ matrix.board }} board
@@ -176,13 +177,15 @@ jobs:
176177
if [ $WARNINGS -eq 0 ]; then
177178
echo "* :white_check_mark: [$BOARD]($JOB_URL) - Build successful" >> "$GITHUB_STEP_SUMMARY"
178179
else
180+
echo >> "$GITHUB_STEP_SUMMARY"
179181
echo "<details><summary>:warning: <a href=\"$JOB_URL\">$BOARD</a> - $WARNINGS warnings:</summary>" >> "$GITHUB_STEP_SUMMARY"
180182
echo >> "$GITHUB_STEP_SUMMARY"
181183
echo "\`\`\`" >> "$GITHUB_STEP_SUMMARY"
182184
echo $REPORT | jq -cr '.warnings_log[]' >> "$GITHUB_STEP_SUMMARY"
183185
echo "\`\`\`" >> "$GITHUB_STEP_SUMMARY"
184186
echo >> "$GITHUB_STEP_SUMMARY"
185187
echo "</details>" >> "$GITHUB_STEP_SUMMARY"
188+
echo >> "$GITHUB_STEP_SUMMARY"
186189
fi
187190
fi
188191
fi

0 commit comments

Comments
 (0)