Skip to content

Commit f8bb06b

Browse files
committed
updating SLACK_MESSAGE to be more detailed
1 parent 80c59b9 commit f8bb06b

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

.github/workflows/hugo--build-release-deploy.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,14 @@ jobs:
309309
#SLACK_COLOR: '#c32a26'
310310
SLACK_COLOR: '#fab005'
311311
#SLACK_COLOR: '#58a459'
312-
SLACK_MESSAGE: "```ref: ${{ github.ref }}\nworkflow_ref: ${{ github.workflow_ref }}```"
312+
SLACK_MESSAGE: |
313+
```
314+
event_name: ${{ github.event_name }}
315+
ref: ${{ github.ref }}
316+
workflow_ref: ${{ github.workflow_ref }}
317+
commit_sha: ${{ github.sha }}
318+
commit_message: ${{ github.event.commits[0].message }}
319+
```
313320
SLACK_TITLE: 'Ready to Deploy :rocket: - `${{ github.repository }}` Release ${{ needs.release-create.outputs.release_name }}'
314321
SLACK_USERNAME: rrchnm-systems
315322
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_SYSTEMS }}"
@@ -335,7 +342,14 @@ jobs:
335342
env:
336343
MSG_MINIMAL: true
337344
SLACK_COLOR: '#c32a26'
338-
SLACK_MESSAGE: "```ref: ${{ github.ref }}\nworkflow_ref: ${{ github.workflow_ref }}```"
345+
SLACK_MESSAGE: |
346+
```
347+
event_name: ${{ github.event_name }}
348+
ref: ${{ github.ref }}
349+
workflow_ref: ${{ github.workflow_ref }}
350+
commit_sha: ${{ github.sha }}
351+
commit_message: ${{ github.event.commits[0].message }}
352+
```
339353
SLACK_TITLE: 'Deployment Failed - `${{ github.repository }}` Release ${{ needs.release-create.outputs.release_name }}'
340354
SLACK_USERNAME: rrchnm-systems
341355
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_SYSTEMS }}"

.github/workflows/jekyll--build-release-deploy.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,14 @@ jobs:
309309
#SLACK_COLOR: '#c32a26'
310310
SLACK_COLOR: '#fab005'
311311
#SLACK_COLOR: '#58a459'
312-
SLACK_MESSAGE: "```ref: ${{ github.ref }}\nworkflow_ref: ${{ github.workflow_ref }}```"
312+
SLACK_MESSAGE: |
313+
```
314+
event_name: ${{ github.event_name }}
315+
ref: ${{ github.ref }}
316+
workflow_ref: ${{ github.workflow_ref }}
317+
commit_sha: ${{ github.sha }}
318+
commit_message: ${{ github.event.commits[0].message }}
319+
```
313320
SLACK_TITLE: 'Ready to Deploy :rocket: - `${{ github.repository }}` Release ${{ needs.release-create.outputs.release_name }}'
314321
SLACK_USERNAME: rrchnm-systems
315322
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_SYSTEMS }}"
@@ -335,7 +342,14 @@ jobs:
335342
env:
336343
MSG_MINIMAL: true
337344
SLACK_COLOR: '#c32a26'
338-
SLACK_MESSAGE: "```ref: ${{ github.ref }}\nworkflow_ref: ${{ github.workflow_ref }}```"
345+
SLACK_MESSAGE: |
346+
```
347+
event_name: ${{ github.event_name }}
348+
ref: ${{ github.ref }}
349+
workflow_ref: ${{ github.workflow_ref }}
350+
commit_sha: ${{ github.sha }}
351+
commit_message: ${{ github.event.commits[0].message }}
352+
```
339353
SLACK_TITLE: 'Deployment Failed - `${{ github.repository }}` Release ${{ needs.release-create.outputs.release_name }}'
340354
SLACK_USERNAME: rrchnm-systems
341355
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_SYSTEMS }}"

0 commit comments

Comments
 (0)