Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAE-28530 Use teams notifications instead of slack #1212

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/enforce-pr-conventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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
27 changes: 13 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- name: Check dependabot build
uses: Activiti/Activiti/.github/actions/check-ext-build@7700f0283a9ff5181581a350d2520e55c61c1c60 # 8.6.0
- name: Setup Helm Docs
uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0
- name: Setup Kubepug
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kubepug@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kubepug@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.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: Run Checkov
Expand All @@ -50,12 +50,12 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Build
uses: Alfresco/alfresco-build-tools/.github/actions/helm-build-chart@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
uses: Alfresco/alfresco-build-tools/.github/actions/helm-build-chart@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0
with:
chart-dir: ${{ env.CHART_DIR }}

- name: Setup Cluster
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0

- name: Compute Keycloak Client Secret
id: compute-keycloak-secret
Expand All @@ -80,7 +80,7 @@ jobs:

- name: Package Helm Chart
id: package-helm-chart
uses: Alfresco/alfresco-build-tools/.github/actions/helm-package-chart@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
uses: Alfresco/alfresco-build-tools/.github/actions/helm-package-chart@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0
with:
chart-dir: ${{ env.CHART_DIR }}

Expand All @@ -94,19 +94,19 @@ jobs:

- name: Parse next release
id: helm-parse-next-release
uses: Alfresco/alfresco-build-tools/.github/actions/helm-parse-next-release@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.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@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.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@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.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 @@ -127,7 +127,7 @@ jobs:
DEVELOPMENT_BRANCH: ${{ github.ref_name }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: Alfresco/alfresco-build-tools/.github/actions/jx-updatebot-pr@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
- uses: Alfresco/alfresco-build-tools/.github/actions/jx-updatebot-pr@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0
with:
version: ${{ env.VERSION }}
auto-merge: 'true'
Expand All @@ -145,8 +145,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: '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_AUTOMATE_BACKEND_WEBHOOK }}
11 changes: 5 additions & 6 deletions .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:

- id: helm-package-chart
name: Package Helm chart
uses: Alfresco/alfresco-build-tools/.github/actions/helm-package-chart@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.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@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.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 @@ -44,8 +44,7 @@ jobs:
- prerelease
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: '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_AUTOMATE_BACKEND_WEBHOOK }}
2 changes: 1 addition & 1 deletion .github/workflows/versions-propagation-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
versions-propagation-auto-merge:
runs-on: ubuntu-latest
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/automate-propagation@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
- uses: Alfresco/alfresco-build-tools/.github/actions/automate-propagation@43b8dd18f509dc920089cdf54269f13a5c02022d # v8.5.0
with:
auto-merge-token: ${{ secrets.BOT_GITHUB_TOKEN }}
approval-token: ${{ secrets.GITHUB_TOKEN }}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@ For Dependabot PRs to be validated by CI, the label "CI" should be added to the

Requires the following secrets to be set:

| Name | Description |
|-------------------------------|--------------------------------------|
| BOT_GITHUB_TOKEN | Token to launch other builds on GH |
| BOT_GITHUB_USERNAME | Username to issue propagation PRs |
| RANCHER2_URL | Rancher URL to perform helm tests |
| RANCHER2_ACCESS_KEY | Rancher access key |
| RANCHER2_SECRET_KEY | Rancher secret key |
| SLACK_NOTIFICATION_BOT_TOKEN | Token to notify slack on failure |
| Name | Description |
|----------------------------------------------|--------------------------------------|
| BOT_GITHUB_TOKEN | Token to launch other builds on GH |
| BOT_GITHUB_USERNAME | Username to issue propagation PRs |
| RANCHER2_URL | Rancher URL to perform helm tests |
| RANCHER2_ACCESS_KEY | Rancher access key |
| RANCHER2_SECRET_KEY | Rancher secret key |
| TEAMS_NOTIFICATION_AUTOMATE_BACKEND_WEBHOOK | Token to notify Teams on failure |
Loading