Skip to content

Commit 334c12a

Browse files
authored
CI: Update compile-platform-examples.yml (#324)
* CI: Update compile-platform-examples.yml * fix: adapt artifact name for upload-artifact@v4
1 parent c2b9f42 commit 334c12a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/compile-platform-examples.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,14 @@ jobs:
194194
enable-deltas-report: false
195195
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
196196

197+
- name: Modify the environment variable
198+
run: |
199+
BOARD_NAME=$(echo ${{ matrix.board.fqbn }} | sed 's/:/-/g')
200+
echo "BOARD_NAME=$BOARD_NAME" >> $GITHUB_ENV
201+
197202
- name: Save sketches report as workflow artifact
198-
uses: actions/upload-artifact@v3
203+
uses: actions/upload-artifact@v4
199204
with:
200205
if-no-files-found: error
206+
name: ${{ env.SKETCHES_REPORTS_PATH }}-${{ env.BOARD_NAME }}
201207
path: ${{ env.SKETCHES_REPORTS_PATH }}
202-
name: ${{ env.SKETCHES_REPORTS_PATH }}

0 commit comments

Comments
 (0)