Skip to content

Commit

Permalink
AAE-28530 Use teams notifications instead of slack
Browse files Browse the repository at this point in the history
  • Loading branch information
atchertchian committed Dec 5, 2024
1 parent 39bfc4d commit 1f056dc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ 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
uses: bridgecrewio/checkov-action@e1bb78184f5dd3690fb1089d6c4f51295f9dff48 # v12.1839.0
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
Expand All @@ -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 }}

Expand All @@ -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 }}
Expand All @@ -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:
Expand All @@ -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 }}
11 changes: 5 additions & 6 deletions .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}

0 comments on commit 1f056dc

Please sign in to comment.