Skip to content

Commit

Permalink
build: ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Sep 13, 2024
1 parent c582300 commit 95b2fdd
Showing 1 changed file with 88 additions and 88 deletions.
176 changes: 88 additions & 88 deletions .github/workflows/slack-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,97 +41,97 @@ jobs:
run: |
if [[ "${{ inputs.status }}" == "success" ]]; then
SLACK_MESSAGE=$(cat <<EOF
{
"channel": "#team-gnark-build",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":white_check_mark: *Workflow Succeeded*"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Actor:*\n${{ inputs.actor }}"
},
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ inputs.repository }}"
},
{
"type": "mrkdwn",
"text": "*PR Title:*\n${{ inputs.pr_title }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ inputs.branch }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*View Run:* <https://github.com/${{ inputs.repository }}/actions/runs/${{ inputs.run_id }}|View Details>"
}
}
]
}
EOF
{
"channel": "#team-gnark-build",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":white_check_mark: *Workflow Succeeded*"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Actor:*\n${{ inputs.actor }}"
},
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ inputs.repository }}"
},
{
"type": "mrkdwn",
"text": "*PR Title:*\n${{ inputs.pr_title }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ inputs.branch }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*View Run:* <https://github.com/${{ inputs.repository }}/actions/runs/${{ inputs.run_id }}|View Details>"
}
}
]
}
EOF
)
else
SLACK_MESSAGE=$(cat <<EOF
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":x: *Workflow Failed*"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Actor:*\n${{ inputs.actor }}"
},
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ inputs.repository }}"
},
{
"type": "mrkdwn",
"text": "*PR Title:*\n${{ inputs.pr_title }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ inputs.branch }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Failed Step:* <https://github.com/${{ inputs.repository }}/actions/runs/${{ inputs.run_id }}|View Details>"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Test Failure Details:* \n${{ inputs.failures }}"
}
}
]
}
EOF
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":x: *Workflow Failed*"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Actor:*\n${{ inputs.actor }}"
},
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ inputs.repository }}"
},
{
"type": "mrkdwn",
"text": "*PR Title:*\n${{ inputs.pr_title }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ inputs.branch }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Failed Step:* <https://github.com/${{ inputs.repository }}/actions/runs/${{ inputs.run_id }}|View Details>"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Test Failure Details:* \n${{ inputs.failures }}"
}
}
]
}
EOF
)
fi

Expand Down

0 comments on commit 95b2fdd

Please sign in to comment.