From 1f056dca47c37930a1d7e3e7c82b5cf019499d5f Mon Sep 17 00:00:00 2001 From: Anahide Tchertchian <608958+atchertchian@users.noreply.github.com> Date: Thu, 5 Dec 2024 11:58:15 +0100 Subject: [PATCH] AAE-28530 Use teams notifications instead of slack --- .github/workflows/main.yml | 23 +++++++++++------------ .github/workflows/rc.yml | 11 +++++------ 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26dc63d..ee7ab49 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,7 +32,7 @@ jobs: - name: Check dependabot build uses: Activiti/Activiti/.github/actions/check-ext-build@d50dea0ec2f4b06b26a8018e5b9083fbced01ed5 # 8.0.0-alpha.10 - name: Setup Helm Docs - uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: version: 1.13.1 - name: Run Checkov @@ -40,7 +40,7 @@ jobs: with: framework: kubernetes - name: pre-commit - uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: skip_checkout: true - name: Ensure SHA pinned actions @@ -53,7 +53,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Build - uses: Alfresco/alfresco-build-tools/.github/actions/helm-build-chart@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + uses: Alfresco/alfresco-build-tools/.github/actions/helm-build-chart@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: chart-dir: ${{ env.CHART_DIR }} @@ -72,19 +72,19 @@ jobs: - name: Parse next release id: helm-parse-next-release - uses: Alfresco/alfresco-build-tools/.github/actions/helm-parse-next-release@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + uses: Alfresco/alfresco-build-tools/.github/actions/helm-parse-next-release@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: chart-dir: ${{ env.CHART_DIR }} - id: calculate-next-internal-version name: Calculate next internal release - uses: Alfresco/alfresco-build-tools/.github/actions/calculate-next-internal-version@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + uses: Alfresco/alfresco-build-tools/.github/actions/calculate-next-internal-version@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: next-version: ${{ steps.helm-parse-next-release.outputs.next-release }} - id: helm-release-and-publish name: Release and publish helm chart - uses: Alfresco/alfresco-build-tools/.github/actions/helm-release-and-publish@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + uses: Alfresco/alfresco-build-tools/.github/actions/helm-release-and-publish@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: version: ${{ steps.calculate-next-internal-version.outputs.next-prerelease }} chart-dir: ${{ env.CHART_DIR }} @@ -111,10 +111,10 @@ jobs: helm-repo-name: ${{ env.HELM_REPO_NAME }} helm-repo-url: ${{ env.HELM_REPO_BASE_URL }} - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + - uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: version: 1.13.1 - - uses: Alfresco/alfresco-build-tools/.github/actions/jx-updatebot-pr@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + - uses: Alfresco/alfresco-build-tools/.github/actions/jx-updatebot-pr@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 env: GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} with: @@ -133,8 +133,7 @@ jobs: - propagate if: always() && failure() && github.event_name == 'push' steps: - - name: Slack Notification - uses: Alfresco/alfresco-build-tools/.github/actions/send-slack-notification@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + - name: Teams Notification + uses: Alfresco/alfresco-build-tools/.github/actions/send-teams-notification@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: - channel-id: 'C03PMT6APFU' # eng-hxp-studio-activiti-gh-notifs, to be renamed eng-automate-activiti-gh-notifs - token: ${{ secrets.SLACK_NOTIFICATION_BOT_TOKEN }} + webhook-url: ${{ secrets.TEAMS_NOTIFICATION_WEBHOOK }} diff --git a/.github/workflows/rc.yml b/.github/workflows/rc.yml index 38ef8f5..759702b 100644 --- a/.github/workflows/rc.yml +++ b/.github/workflows/rc.yml @@ -24,13 +24,13 @@ jobs: - id: helm-package-chart name: Package Helm chart - uses: Alfresco/alfresco-build-tools/.github/actions/helm-package-chart@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + uses: Alfresco/alfresco-build-tools/.github/actions/helm-package-chart@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: chart-dir: ${{ env.CHART_DIR }} - id: helm-publish-chart name: Publish Helm chart - uses: Alfresco/alfresco-build-tools/.github/actions/helm-publish-chart@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + uses: Alfresco/alfresco-build-tools/.github/actions/helm-publish-chart@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: chart-package: ${{ steps.helm-package-chart.outputs.package-file-path }} helm-charts-repo: ${{ env.HELM_REPO }} @@ -53,8 +53,7 @@ jobs: - prerelease if: always() && failure() && github.event_name == 'push' steps: - - name: Slack Notification - uses: Alfresco/alfresco-build-tools/.github/actions/send-slack-notification@5cab7bac9b94deb11087c3c39c8e412f6ecf1e00 # v8.1.0 + - name: Teams Notification + uses: Alfresco/alfresco-build-tools/.github/actions/send-teams-notification@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: - channel-id: 'C04CARMB605' # eng-hxp-studio-releases-gh-notifs, to be renamed eng-automate-releases-gh-notifs - token: ${{ secrets.SLACK_NOTIFICATION_BOT_TOKEN }} + webhook-url: ${{ secrets.TEAMS_NOTIFICATION_WEBHOOK }}