[Rt-commit] rt branch, 4.4/github-actions-testing, updated. rt-4.4.4-223-g82a461c864

Dianne Skoll dianne at bestpractical.com
Thu Feb 4 16:29:01 EST 2021


The branch, 4.4/github-actions-testing has been updated
       via  82a461c864b1aca60035a34ebf58c1469a2fb0be (commit)
      from  5abc744188d66eb30bdb3479c4b3701e369d39d0 (commit)

Summary of changes:
 .github/workflows/github-action.yml | 84 +++++++++++++++++--------------------
 etc/RT_SiteConfig.pm                |  1 +
 2 files changed, 40 insertions(+), 45 deletions(-)

- Log -----------------------------------------------------------------
commit 82a461c864b1aca60035a34ebf58c1469a2fb0be
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Thu Feb 4 16:28:40 2021 -0500

    Try edge/simple-slack-notify at v1.1.1

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index 2113fa1312..0f7eb3c903 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -30,22 +30,20 @@ jobs:
           DB_VERSION_TAG: 10.3
         shell: bash
         run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=root -e RT_DBA_PASSWORD=password rt bash -c "cd /rt && prove -lj9 t/*"
-      - name: Post success to Slack
-        if: success()
-        uses: rtCamp/action-slack-notify at v2
+      - name: Post results to Slack
+        if: always()
+        uses: edge/simple-slack-notify at v1.1.1
         env:
-          SLACK_USERNAME: github
-          SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
-          SLACK_TITLE: rt_test_mariadb ${{ job.status }}
-          SLACK_COLOR: good
-      - name: Post failure to Slack
-        if: failure()
-        uses: rtCamp/action-slack-notify at v2
-        env:
-          SLACK_USERNAME: github
-          SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
-          SLACK_TITLE: rt_test_mariadb ${{ job.status }}
-          SLACK_COLOR: danger
+          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
+        with:
+          channel: '#github'
+          status: ${{ job.status }}
+          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build completed successfully'
+          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build failed'
+          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build was cancelled'
+          fields: |
+            [{ "title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true },
+            { "title": "Branch", "value": "${env.BRANCH}", "short": true }]
   rt_test_sqlite:
     runs-on: ubuntu-latest
     steps:
@@ -65,22 +63,20 @@ jobs:
           RT_TEST_PARALLEL: 1
         shell: bash
         run: docker exec -e RT_TEST_PARALLEL=1 rt bash -c "cd /rt && prove -lj9 t/*"
-      - name: Post success to Slack
-        if: success()
-        uses: rtCamp/action-slack-notify at v2
-        env:
-          SLACK_USERNAME: github
-          SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
-          SLACK_TITLE: rt_test_sqlite ${{ job.status }}
-          SLACK_COLOR: good
-      - name: Post failure to Slack
-        if: failure()
-        uses: rtCamp/action-slack-notify at v2
+      - name: Post results to Slack
+        if: always()
+        uses: edge/simple-slack-notify at v1.1.1
         env:
-          SLACK_USERNAME: github
-          SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
-          SLACK_TITLE: rt_test_sqlite ${{ job.status }}
-          SLACK_COLOR: danger
+          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
+        with:
+          channel: '#github'
+          status: ${{ job.status }}
+          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build completed successfully'
+          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build failed'
+          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build was cancelled'
+          fields: |
+            [{ "title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true },
+            { "title": "Branch", "value": "${env.BRANCH}", "short": true }]
   rt_test_postgresql_apache_mod_fcgid:
     runs-on: ubuntu-latest
     steps:
@@ -100,19 +96,17 @@ jobs:
       - name: Run RT tests
         shell: bash
         run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=postgres -e RT_DBA_PASSWORD=password -u rt-user rt bash -c "cd /rt && prove -lj9 t/*"
-      - name: Post success to Slack
-        if: success()
-        uses: rtCamp/action-slack-notify at v2
-        env:
-          SLACK_USERNAME: github
-          SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
-          SLACK_TITLE: rt_test_postgresql_apache_mod_fcgid ${{ job.status }}
-          SLACK_COLOR: good
-      - name: Post failure to Slack
-        if: failure()
-        uses: rtCamp/action-slack-notify at v2
+      - name: Post results to Slack
+        if: always()
+        uses: edge/simple-slack-notify at v1.1.1
         env:
-          SLACK_USERNAME: github
-          SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
-          SLACK_TITLE: rt_test_postgresql_apache_mod_fcgid ${{ job.status }}
-          SLACK_COLOR: danger
+          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
+        with:
+          channel: '#github'
+          status: ${{ job.status }}
+          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build completed successfully'
+          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build failed'
+          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build was cancelled'
+          fields: |
+            [{ "title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true },
+            { "title": "Branch", "value": "${env.BRANCH}", "short": true }]
diff --git a/etc/RT_SiteConfig.pm b/etc/RT_SiteConfig.pm
index 9944ebe979..bee7724423 100644
--- a/etc/RT_SiteConfig.pm
+++ b/etc/RT_SiteConfig.pm
@@ -27,6 +27,7 @@ use utf8;
 # after this file is loaded.
 
 Set( $rtname, 'example.com');
+Plugin('RT::Extension::ArticleTemplates');
 
 # You must install Plugins on your own, this is only an example
 # of the correct syntax to use when activating them:

-----------------------------------------------------------------------


More information about the rt-commit mailing list