feat: test notify action #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Notify | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 9 * * *' | ||
jobs: | ||
deploy-staging: | ||
name: Deploy - staging | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Notify staging failure only | ||
if: success() || failure() | ||
uses: ./.github/actions/notify | ||
with: | ||
message: '🚨 ${{ repository.name }} : deploy to staging failed' | ||
Check failure on line 25 in .github/workflows/test-notify.yml GitHub Actions / Test NotifyInvalid workflow file
|
||
hook: ${{ secrets.TCHAP_HOOK }} | ||
id: ${{ secrets.TCHAP_ROOM_ID }} |