Skip to content

Commit 80c59b9

Browse files
committed
yaml block scalar
1 parent b1ccf7b commit 80c59b9

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/django--build-publish.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,14 @@ jobs:
108108
MSG_MINIMAL: true
109109
SLACK_COLOR: '#fab005'
110110
SLACK_TITLE: 'Built and Published Package :package: `${{ env.CONTAINER_TAG }}`'
111-
SLACK_MESSAGE: "```commit_sha: ${{ github.sha }}\ncommit_message: ${{ github.event.commits[0].message }}\nref: ${{ github.ref }}\nworkflow_ref: ${{ github.workflow_ref }}```"
111+
SLACK_MESSAGE: |
112+
```
113+
event_name: ${{ github.event_name }}
114+
ref: ${{ github.ref }}
115+
workflow_ref: ${{ github.workflow_ref }}
116+
commit_sha: ${{ github.sha }}
117+
commit_message: ${{ github.event.commits[0].message }}
118+
```
112119
SLACK_USERNAME: rrchnm-systems
113120
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_SYSTEMS }}"
114121

@@ -123,6 +130,13 @@ jobs:
123130
MSG_MINIMAL: true
124131
SLACK_COLOR: '#c32a26'
125132
SLACK_TITLE: 'Build or Publish Package Failure :x: `${{ env.CONTAINER_TAG }}`'
126-
SLACK_MESSAGE: "```commit_sha: ${{ github.sha }}\ncommit_message: ${{ github.event.commits[0].message }}\nref: ${{ github.ref }}\nworkflow_ref: ${{ github.workflow_ref }}```"
133+
SLACK_MESSAGE: |
134+
```
135+
event_name: ${{ github.event_name }}
136+
ref: ${{ github.ref }}
137+
workflow_ref: ${{ github.workflow_ref }}
138+
commit_sha: ${{ github.sha }}
139+
commit_message: ${{ github.event.commits[0].message }}
140+
```
127141
SLACK_USERNAME: rrchnm-systems
128142
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_SYSTEMS }}"

0 commit comments

Comments
 (0)