Skip to content

Commit

Permalink
chore: Removed Slack notification
Browse files Browse the repository at this point in the history
  • Loading branch information
snaselj committed Mar 19, 2024
1 parent de5e195 commit aa3e50c
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/pylint_nautobot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,36 +49,3 @@ jobs:
- name: "Linting: pylint"
# TBD: Replace with `develop` branch before merging
run: "poetry run invoke pylint --ref=u/snaselj-fix-deps"
slack-notify:
needs: "latest-pylint-nautobot"
if: |
failure()
runs-on: "ubuntu-22.04"
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_MESSAGE: >-
*NOTIFICATION: FAILED-LATEST-PYLINT-NAUTOBOT*\n
Repository: <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}>\n
Run Details: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Run details>
steps:
- name: "Send a notification to Slack"
if: |
env.SLACK_WEBHOOK_URL != ''
uses: "slackapi/slack-github-action@v1"
with:
payload: |
{
"text": "${{ env.SLACK_MESSAGE }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ env.SLACK_MESSAGE }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_WEBHOOK_TYPE: "INCOMING_WEBHOOK"

0 comments on commit aa3e50c

Please sign in to comment.