mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-10 10:11:29 +01:00
Fix component image generator filenames (#4214)
This commit is contained in:
parent
63665cacf5
commit
24897454ff
4
.github/workflows/component-image.yml
vendored
4
.github/workflows/component-image.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user