Add job field to Slack report when AGLint fails (#151714)

This commit is contained in:
scripthunter7
2023-05-24 13:22:00 +02:00
committed by GitHub
parent 27279aca55
commit 58190b48d2

View File

@@ -55,8 +55,11 @@ jobs:
- uses: 8398a7/action-slack@v3
with:
status: failure
fields: workflow, repo, message, commit, author, eventName, ref
fields: workflow, repo, message, commit, author, eventName, ref, job
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# Matrix is required if the fields contain job or took
# See https://action-slack.netlify.app/usage/fields/
MATRIX_CONTEXT: ${{ toJson(matrix) }}
if: ${{ env.WORKFLOW_CONCLUSION == 'failure' }}