Skip to content

Commit 5530e05

Browse files
committed
Colon cannot be used in artifact names
1 parent 715d010 commit 5530e05

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: .github/workflows/compile-examples.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,16 @@ jobs:
147147
enable-deltas-report: 'true'
148148
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
149149

150+
# Generate unique artifact name without colon
151+
- name: Generate artifact name
152+
env:
153+
FQBN: ${{ matrix.board.fqbn }}
154+
id: artifact-namer
155+
run: |
156+
ARTIFACT_NAME="${{ env.SKETCHES_REPORTS_PATH }}-${FQBN//:/_}"
157+
echo "name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT"
150158
- name: Save memory usage change report as artifact
151159
uses: actions/upload-artifact@v4
152160
with:
153161
path: ${{ env.SKETCHES_REPORTS_PATH }}
154-
name: ${{ env.SKETCHES_REPORTS_PATH }}-${{ matrix.board.fqbn }}
162+
name: ${{ steps.artifact-namer.outputs.name }}

0 commit comments

Comments
 (0)