ci: Update build.yml workflow
This commit is contained in:
parent
7c025c9f2b
commit
3c42d98c5d
60
.github/workflows/build.yml
vendored
60
.github/workflows/build.yml
vendored
|
@ -350,50 +350,34 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Notify on Slack (Success)
|
- name: Notify on Slack (Success)
|
||||||
if: ${{ !contains(join(needs.*.result, ','), 'failure') }}
|
if: ${{ !contains(join(needs.*.result, ','), 'failure') }}
|
||||||
uses: slackapi/slack-github-action@v1.27.0
|
uses: slackapi/slack-github-action@v2
|
||||||
with:
|
with:
|
||||||
channel-id: ${{ secrets.SLACK_GH_BUILDS_CHANNEL_ID }}
|
token: ${{ secrets.SLACK_GH_BOT }}
|
||||||
|
method: chat.postMessage
|
||||||
payload: |
|
payload: |
|
||||||
{
|
channel: ${{ secrets.SLACK_GH_BUILDS_CHANNEL_ID }}
|
||||||
"text": "Datatracker Build <https://github.com/ietf-tools/datatracker/actions/runs/${{ github.run_id }}|${{ env.PKG_VERSION }}> by ${{ github.triggering_actor }} - <@${{ secrets.SLACK_UID_RJSPARKS }}>",
|
text: "Datatracker Build <https://github.com/ietf-tools/datatracker/actions/runs/${{ github.run_id }}|${{ env.PKG_VERSION }}> by ${{ github.triggering_actor }}"
|
||||||
"attachments": [
|
attachments:
|
||||||
{
|
- color: "28a745"
|
||||||
"color": "28a745",
|
fields:
|
||||||
"fields": [
|
- title: "Status"
|
||||||
{
|
short: true
|
||||||
"title": "Status",
|
value: "Completed"
|
||||||
"short": true,
|
|
||||||
"value": "Completed"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
env:
|
|
||||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_GH_BOT }}
|
|
||||||
- name: Notify on Slack (Failure)
|
- name: Notify on Slack (Failure)
|
||||||
if: ${{ contains(join(needs.*.result, ','), 'failure') }}
|
if: ${{ contains(join(needs.*.result, ','), 'failure') }}
|
||||||
uses: slackapi/slack-github-action@v1.27.0
|
uses: slackapi/slack-github-action@v2
|
||||||
with:
|
with:
|
||||||
channel-id: ${{ secrets.SLACK_GH_BUILDS_CHANNEL_ID }}
|
token: ${{ secrets.SLACK_GH_BOT }}
|
||||||
|
method: chat.postMessage
|
||||||
payload: |
|
payload: |
|
||||||
{
|
channel: ${{ secrets.SLACK_GH_BUILDS_CHANNEL_ID }}
|
||||||
"text": "Datatracker Build <https://github.com/ietf-tools/datatracker/actions/runs/${{ github.run_id }}|${{ env.PKG_VERSION }}> by ${{ github.triggering_actor }} - <@${{ secrets.SLACK_UID_RJSPARKS }}>",
|
text: "Datatracker Build <https://github.com/ietf-tools/datatracker/actions/runs/${{ github.run_id }}|${{ env.PKG_VERSION }}> by ${{ github.triggering_actor }}"
|
||||||
"attachments": [
|
attachments:
|
||||||
{
|
- color: "a82929"
|
||||||
"color": "a82929",
|
fields:
|
||||||
"fields": [
|
- title: "Status"
|
||||||
{
|
short: true
|
||||||
"title": "Status",
|
value: "Failed"
|
||||||
"short": true,
|
|
||||||
"value": "Failed"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
env:
|
|
||||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_GH_BOT }}
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# SANDBOX
|
# SANDBOX
|
||||||
|
|
Loading…
Reference in a new issue