mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
add slack notifications only on new-version failure
This commit is contained in:
parent
5e50f9ead7
commit
ad375e1dbd
1 changed files with 15 additions and 0 deletions
15
.github/workflows/new-version.yml
vendored
15
.github/workflows/new-version.yml
vendored
|
@ -20,3 +20,18 @@ jobs:
|
|||
with:
|
||||
new-version: true
|
||||
secrets: inherit
|
||||
|
||||
complain:
|
||||
if: failure()
|
||||
needs: [build, bottle]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: martialonline/workflow-status@v3
|
||||
id: status
|
||||
- uses: rtCamp/action-slack-notify@v2
|
||||
if: ${{ env.SLACK_WEBHOOK != '' }}
|
||||
env:
|
||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
|
||||
SLACK_MESSAGE: new-version:${{ inputs.projects }} ${{ steps.status.outputs.status }}
|
||||
SLACK_COLOR: ${{ steps.status.outputs.status }}
|
||||
|
|
Loading…
Reference in a new issue