Skip to content

Commit

Permalink
fix: Use failure
Browse files Browse the repository at this point in the history
  • Loading branch information
snaselj committed Mar 4, 2024
1 parent 5d5327a commit de5e195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pylint_nautobot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on: # yamllint disable-line rule:truthy rule:comments
env:
APP_NAME: "nautobot-app-dev-example"

# Is the use of `failure()` correct?
jobs:
latest-pylint-nautobot:
runs-on: "ubuntu-22.04"
Expand Down Expand Up @@ -49,10 +50,9 @@ jobs:
# TBD: Replace with `develop` branch before merging
run: "poetry run invoke pylint --ref=u/snaselj-fix-deps"
slack-notify:
needs:
- "latest-pylint-nautobot"
needs: "latest-pylint-nautobot"
if: |
needs.latest-pylint-nautobot.result == 'failure'
failure()
runs-on: "ubuntu-22.04"
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
Expand Down

0 comments on commit de5e195

Please sign in to comment.