Fix component image generator filenames (#4214)

This commit is contained in:
Jesse Hills 2024-09-02 11:01:11 +12:00 committed by GitHub
parent 63665cacf5
commit 24897454ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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