|
79 | 79 | name: code-coverage-report |
80 | 80 | path: htmlcov |
81 | 81 |
|
82 | | - docker: |
| 82 | + build-docker: |
83 | 83 | name: Build and Push to DockerHub |
84 | 84 | needs: test |
85 | 85 | runs-on: ubuntu-latest |
@@ -108,35 +108,31 @@ jobs: |
108 | 108 | # tags: ${{ steps.meta.outputs.tags }} |
109 | 109 | # labels: ${{ steps.meta.outputs.labels }} |
110 | 110 |
|
111 | | - # alert: |
112 | | - # name: Alerts |
113 | | - # needs: docker |
114 | | - # # if: ${{ github.event.workflow_run.conclusion == 'failure' }} |
115 | | - # runs-on: ubuntu-latest |
116 | | - # steps: |
117 | | - # - uses: actions/checkout@v3 |
| 111 | + alert: |
| 112 | + name: Slack-Alerts |
| 113 | + needs: build-docker |
| 114 | + # if: ${{ github.event.workflow_run.conclusion == 'failure' }} |
| 115 | + runs-on: ubuntu-latest |
| 116 | + steps: |
| 117 | + - uses: actions/checkout@v3 |
118 | 118 |
|
119 | | - # - name: Post to a Slack channel |
120 | | - # uses: 8398a7/action-slack@v3 |
121 | | - # with: |
122 | | - # status: ${{ job.status }} |
123 | | - # author_name: Montoring-Slack from GitHub Actions |
124 | | - # fields: repo,message,commit,author,action,eventName,ref,workflow,took # selectable (default: repo,commit,message,author)\ |
125 | | - # mention: here |
126 | | - # if_mention: failure,cancelled |
127 | | - # env: |
128 | | - # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
129 | | - # if: always() # Pick up events even if the job fails or is canceled. |
| 119 | + - name: Post to a Slack channel |
| 120 | + uses: act10ns/slack@v1 |
| 121 | + with: |
| 122 | + status: ${{ job.status }} |
| 123 | + steps: ${{ toJson(steps) }} |
| 124 | + channel: '#workflows' |
| 125 | + if: always() |
| 126 | + # uses: 8398a7/action-slack@v3 |
| 127 | + # with: |
| 128 | + # status: ${{ job.status }} |
| 129 | + # author_name: Montoring-Slack from GitHub Actions |
| 130 | + # fields: repo,message,commit,author,action,eventName,ref,workflow,took # selectable (default: repo,commit,message,author)\ |
| 131 | + # mention: here |
| 132 | + # if_mention: failure,cancelled |
| 133 | + # env: |
| 134 | + # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
| 135 | + # if: always() # Pick up events even if the job fails or is canceled. |
130 | 136 |
|
131 | | - |
132 | | - # - name: Slack Notification |
133 | | - # uses: rtCamp/action-slack-notify@v2 |
134 | | - # env: |
135 | | - # SLACK_CHANNEL: alert |
136 | | - # SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' |
137 | | - # # SLACK_ICON: https://github.com/rtCamp.png?size=48 |
138 | | - # SLACK_MESSAGE: 'Post Content :rocket:' |
139 | | - # SLACK_TITLE: Post Title |
140 | | - # SLACK_USERNAME: alert |
141 | | - # SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} |
| 137 | + |
142 | 138 |
|
0 commit comments