فهرست منبع

notify illegal named branches

Yuki Takei 5 سال پیش
والد
کامیت
98bf311532
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      .github/workflows/list-unhealthy-branches.yml

+ 9 - 1
.github/workflows/list-unhealthy-branches.yml

@@ -25,10 +25,18 @@ jobs:
         echo ::set-output name=SLACK_ATTACHMENTS_INACTIVE::$(node bin/github-actions/list-branches --inactive)
         echo ::set-output name=SLACK_ATTACHMENTS_ILLEGAL::$(node bin/github-actions/list-branches --illegal)
 
+    - name: Slack Notification for illegal named branches
+      uses: tokorom/action-slack-incoming-webhook@master
+      env:
+        INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FOR_DEV }}
+      with:
+        text: There is some *illegal named branches* on GitHub.
+        attachments: ${{ steps.list-branches.outputs.SLACK_ATTACHMENTS_ILLEGAL }}
+
     - name: Slack Notification for inactive branches
       uses: tokorom/action-slack-incoming-webhook@master
       env:
         INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FOR_DEV }}
       with:
-        text: There is some *inactive* branches on remote.
+        text: There is some *inactive branches* on GitHub.
         attachments: ${{ steps.list-branches.outputs.SLACK_ATTACHMENTS_INACTIVE }}