Skip to content

Commit

Permalink
Fix component image generator filenames (#4214)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Sep 1, 2024
1 parent 63665ca commit 2489745
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/component-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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/[email protected]
Expand Down

0 comments on commit 2489745

Please sign in to comment.