From b5ad5443496f00f7cf0f179efea42153d813d839 Mon Sep 17 00:00:00 2001 From: Anahide Tchertchian <608958+atchertchian@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:44:59 +0100 Subject: [PATCH] AAE-28530 Use teams notifications instead of slack --- .github/workflows/build.yml | 11 +++++------ .github/workflows/cache-cleanup-on-merge.yml | 2 +- .github/workflows/enforce-pr-conventions.yml | 2 +- .github/workflows/release.yml | 4 ++-- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e75e57101..bd97fb4e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: - name: Check dependabot build uses: Activiti/Activiti/.github/actions/check-ext-build@7700f0283a9ff5181581a350d2520e55c61c1c60 # 8.6.0 - name: pre-commit - uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0 + uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: skip_checkout: true - name: Ensure SHA pinned actions @@ -49,7 +49,7 @@ jobs: outputs: version: ${{ steps.build-and-tag.outputs.version }} steps: - - uses: Alfresco/alfresco-build-tools/.github/actions/maven-build-and-tag@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0 + - uses: Alfresco/alfresco-build-tools/.github/actions/maven-build-and-tag@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 id: build-and-tag with: upload-jars: 'true' @@ -98,8 +98,7 @@ jobs: - promote if: always() && failure() && github.event_name == 'push' steps: - - name: Slack Notification - uses: Alfresco/alfresco-build-tools/.github/actions/send-slack-notification@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0 + - name: Teams Notification + uses: Alfresco/alfresco-build-tools/.github/actions/send-teams-notification@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: - channel-id: 'C03PE6U4MU1' # eng-hxp-studio-be-gh-notifs, to be renamed eng-automate-be-gh-notifs - token: ${{ secrets.SLACK_NOTIFICATION_BOT_TOKEN }} + webhook-url: ${{ secrets.TEAMS_NOTIFICATION_AUTOMATE_BACKEND_WEBHOOK }} diff --git a/.github/workflows/cache-cleanup-on-merge.yml b/.github/workflows/cache-cleanup-on-merge.yml index 41daf008d..f7568c971 100644 --- a/.github/workflows/cache-cleanup-on-merge.yml +++ b/.github/workflows/cache-cleanup-on-merge.yml @@ -8,6 +8,6 @@ jobs: cleanup: runs-on: ubuntu-latest steps: - - uses: Alfresco/alfresco-build-tools/.github/actions/gh-cache-cleanup-on-merge@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0 + - uses: Alfresco/alfresco-build-tools/.github/actions/gh-cache-cleanup-on-merge@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/enforce-pr-conventions.yml b/.github/workflows/enforce-pr-conventions.yml index 45123a33f..7ed3a18be 100644 --- a/.github/workflows/enforce-pr-conventions.yml +++ b/.github/workflows/enforce-pr-conventions.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - name: enforce-pr-conventions id: git-naming-convention - uses: Alfresco/alfresco-build-tools/.github/actions/enforce-pr-conventions@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0 + uses: Alfresco/alfresco-build-tools/.github/actions/enforce-pr-conventions@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: jira-project-key: AAE|HXOR valid-branch-regex: ^(revert-|(improvement|fix|feature|test|tmp|release)\/(AAE|HXOR)-[0-9]+[_-]{1}[A-Za-z0-9._-]+|release\/[A-Za-z0-9]+)$ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 50275d37b..7dcd43cbd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - name: Check dependabot build uses: Activiti/Activiti/.github/actions/check-ext-build@7700f0283a9ff5181581a350d2520e55c61c1c60 # 8.6.0 - name: pre-commit - uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0 + uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: skip_checkout: true - name: Ensure SHA pinned actions @@ -74,7 +74,7 @@ jobs: - name: Commit Changes env: VERSION: ${{ github.event.inputs.tag-name }} - uses: Alfresco/alfresco-build-tools/.github/actions/git-commit-changes@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0 + uses: Alfresco/alfresco-build-tools/.github/actions/git-commit-changes@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0 with: username: ${{ secrets.BOT_GITHUB_USERNAME }} commit-message: "Release ${VERSION}"