Skip to content

Commit 10e70d8

Browse files
DenysBielovclaude
andcommitted
fix: inline status expression to avoid YAML block scalar parsing issue
Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent e538e57 commit 10e70d8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/build-dotnet-service.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,7 @@ jobs:
251251
with:
252252
bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
253253
chat-id: ${{ secrets.TELEGRAM_CHAT_ID }}
254-
status: >-
255-
${{
256-
job.status == 'success'
257-
&& (inputs.push-docker-image && 'docker-passed' || 'build-passed')
258-
|| (steps.tests.outcome == 'failure' && 'tests-failed')
259-
|| (inputs.push-docker-image && 'docker-failed')
260-
|| 'build-failed'
261-
}}
254+
status: ${{ job.status == 'success' && (inputs.push-docker-image && 'docker-passed' || 'build-passed') || (steps.tests.outcome == 'failure' && 'tests-failed') || (inputs.push-docker-image && 'docker-failed') || 'build-failed' }}
262255
service-name: ${{ inputs.service-name }}
263256
message-id: ${{ steps.tg-start.outputs.message-id }}
264257
previous-lines: ${{ steps.tg-start.outputs.message-lines }}

0 commit comments

Comments
 (0)