Skip to content

Commit 7bf0a1c

Browse files
committed
style(CI): Correct Mattermost message for Azure image to Gallery release notification
1 parent 6e12a8e commit 7bf0a1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/azure-to-gallery.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ jobs:
174174
RAW*)
175175
{
176176
echo 'IMAGE_URI_SUMMARY<<EOF'
177-
cat /mnt/azure_uploader.log | grep 'Image URI:'
177+
cat /mnt/azure_uploader.log | grep 'Image URI:' | sed 's/Image/- Image/g'
178178
echo EOF
179179
} >> "$GITHUB_ENV"
180180
;;
181181
VHD*)
182-
echo "IMAGE_URI_SUMMARY=Image URI: ${{ inputs.image_url }}" >> "$GITHUB_ENV"
182+
echo "IMAGE_URI_SUMMARY=- Image URI: ${{ inputs.image_url }}" >> "$GITHUB_ENV"
183183
;;
184184
esac
185185
@@ -196,7 +196,7 @@ jobs:
196196
echo "**${{ env.RELEASE_STRING }}** \`${{ env.TIMESTAMP }}\`:"
197197
echo "- Image file: ${{ env.IMAGE_FILE }}"
198198
[[ ${{ inputs.dry-run-mode }} == 'false' ]] \
199-
&& echo "- ${{ env.IMAGE_URI_SUMMARY }}" || true
199+
&& echo "${{ env.IMAGE_URI_SUMMARY }}" || true
200200
[[ ${{ inputs.dry-run-mode }} == 'false' ]] \
201201
&& echo "${{ env.IMAGE_INFO_SUMMARY }}" || true
202202
echo "- Released to Gallery: ${{ inputs.dry-run-mode && '❌' || '✅' }}"
@@ -213,7 +213,7 @@ jobs:
213213
TEXT: |
214214
:almalinux: **${{ env.RELEASE_STRING }}** `${{ env.TIMESTAMP }}` Azure image, by the GitHub [Action](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
215215
- Image file: `${{ env.IMAGE_FILE }}`
216-
- ${{ inputs.dry-run-mode == 'false' && env.IMAGE_URI_SUMMARY || '' }}
217-
${{ inputs.dry-run-mode == 'false' && env.IMAGE_INFO_SUMMARY || '' }}
216+
${{ inputs.dry-run-mode && '' || env.IMAGE_URI_SUMMARY }}
217+
${{ inputs.dry-run-mode && '' || env.IMAGE_INFO_SUMMARY }}
218218
- Released to Gallery: ${{ inputs.dry-run-mode && '❌' || '✅'}}
219219
- The Gallery is public: ${{ inputs.public_gallery && '✅' || '❌'}}

0 commit comments

Comments
 (0)