-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix component image generator filenames (#4214)
- Loading branch information
1 parent
63665ca
commit 2489745
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|