Remove slack integration first to avoid create noises. (#82)

This commit is contained in:
Yang Cao
2023-10-30 17:16:46 -04:00
committed by GitHub
parent d88f49218f
commit 0e7c371e56
2 changed files with 18 additions and 18 deletions

View File

@@ -56,12 +56,12 @@ jobs:
cache_delete=$(gh actions-cache delete $CacheKey --branch $GITHUB_REF --confirm | grep "Deleted 1 cache entry with key")
echo $cache_delete
[[ -z "$cache_delete" ]] && exit 1 || echo "Cache Delete Successful"
- name: Slack Notification on failure
if: failure()
uses: 8398a7/action-slack@a74b761b4089b5d730d813fbedcd2ec5d394f3af
with:
text: actions/gh-actions-cache canary failure
status: ${{ job.status }}
fields: repo,workflow,message,author,action,ref
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# - name: Slack Notification on failure
# if: failure()
# uses: 8398a7/action-slack@a74b761b4089b5d730d813fbedcd2ec5d394f3af
# with:
# text: actions/gh-actions-cache canary failure
# status: ${{ job.status }}
# fields: repo,workflow,message,author,action,ref
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@@ -75,12 +75,12 @@ jobs:
cache_delete=$(gh actions-cache delete $CacheKey --branch $GITHUB_REF --confirm | grep "Deleted 1 cache entry with key")
echo $cache_delete
[[ -z "$cache_delete" ]] && exit 1 || echo "Cache Delete Successful"
- name: Slack Notification on failure
if: failure()
uses: 8398a7/action-slack@a74b761b4089b5d730d813fbedcd2ec5d394f3af
with:
text: actions/gh-actions-cache E2E test failure
status: ${{ job.status }}
fields: repo,workflow,message,author,action,ref
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# - name: Slack Notification on failure
# if: failure()
# uses: 8398a7/action-slack@a74b761b4089b5d730d813fbedcd2ec5d394f3af
# with:
# text: actions/gh-actions-cache E2E test failure
# status: ${{ job.status }}
# fields: repo,workflow,message,author,action,ref
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}