Skip to content

Commit

Permalink
mv notification to nightly gate (#324)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman authored Oct 10, 2023
1 parent 275f1a5 commit 0bd4751
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/nightly-quality-gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,21 @@ jobs:
needs: validate-provider
if: ${{ always() && !cancelled() }}
steps:
# based on https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context
# the valid result values are: success, failure, cancelled, skipped
- run: |
echo "Validations Status: ${{ needs.run-provider-validation.result }}"
if [ "${{ needs.run-provider-validation.result }}" == "failure" ]; then
echo "Quality gate failed!"
if [ "${{ needs.run-provider-validation.result }}" != "success" ]; then
echo "🔴 Quality gate FAILED! 😭"
exit 1
fi
echo "Quality gate passed!"
echo "🟢 Quality gate passed!"
- uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3.15.1
if: ${{ failure() }}
with:
status: ${{ job.status }}
fields: repo,workflow,action,eventName
text: "Vunnel nightly quality gate has failed: https://github.com/anchore/vunnel/actions/workflows/nightly-quality-gate.yaml"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}
9 changes: 0 additions & 9 deletions .github/workflows/pr-quality-gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,3 @@ jobs:
exit 1
fi
echo "🟢 Quality gate passed! (all tests passed)"
- uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3.15.1
if: ${{ failure() }}
with:
status: ${{ job.status }}
fields: repo,workflow,action,eventName
text: "Vunnel nightly quality gate has failed: https://github.com/anchore/vunnel/actions/workflows/nightly-quality-gate.yaml"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}

0 comments on commit 0bd4751

Please sign in to comment.