From 24897454ffeda1a94cb90ce13aa0b120ded1aa44 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Mon, 2 Sep 2024 11:01:11 +1200 Subject: [PATCH] Fix component image generator filenames (#4214) --- .github/workflows/component-image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/component-image.yml b/.github/workflows/component-image.yml index 6c4633027..2ed1ca780 100644 --- a/.github/workflows/component-image.yml +++ b/.github/workflows/component-image.yml @@ -14,6 +14,7 @@ jobs: runs-on: ubuntu-latest outputs: name: ${{ steps.get_component.outputs.name }} + name_lower: ${{ steps.get_component.outputs.name_lower }} comment_id: ${{ steps.create-comment.outputs.result }} steps: - name: Comment @@ -35,6 +36,7 @@ jobs: comment="${{ github.event.comment.body }}" component=$(echo $comment | sed -n 's/^@esphomebot generate image //p') echo "name=$component" >> $GITHUB_OUTPUT + echo "name_lower=${component,,}" >> $GITHUB_OUTPUT generate: name: Generate @@ -52,7 +54,7 @@ jobs: id: upload-artifact with: name: ${{ needs.prepare.outputs.name }} - path: ${{ needs.prepare.outputs.name }}.svg + path: ${{ needs.prepare.outputs.name_lower }}.svg - name: Update Comment uses: actions/github-script@v7.0.1