mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-10175] Add webhook url
This commit is contained in:
@@ -3,25 +3,16 @@ name: "Notify Teams on A/N BDU label"
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, reopened, labeled]
|
types: [opened, reopened, labeled]
|
||||||
branches:
|
branches: [develop]
|
||||||
- develop
|
|
||||||
- master
|
|
||||||
- develop-patch*
|
|
||||||
- master-patch*
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
# De-duplicate: only one notification run per PR at a time.
|
|
||||||
group: notify-bdu-${{ github.event.pull_request.number }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
notify-bdu:
|
notify-bdu:
|
||||||
name: Notify Teams when A/N BDU label is present
|
name: Notify Teams when A/N BDU label is present
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 5
|
||||||
if: >-
|
if: >-
|
||||||
(github.event.action == 'labeled' && github.event.label.name == 'A/N BDU') ||
|
(github.event.action == 'labeled' && github.event.label.name == 'A/N BDU') ||
|
||||||
((github.event.action == 'opened' || github.event.action == 'reopened') &&
|
((github.event.action == 'opened' || github.event.action == 'reopened') &&
|
||||||
@@ -32,9 +23,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
webhook-url: ${{ secrets.TEAMS_NOTIFICATION_ADF_BDU_WEBHOOK }}
|
webhook-url: ${{ secrets.TEAMS_NOTIFICATION_ADF_BDU_WEBHOOK }}
|
||||||
skip_checkout: true
|
skip_checkout: true
|
||||||
|
# Explicit status so the action does not try to auto-compute it from
|
||||||
|
# the workflow run (which would require `actions: read` permission).
|
||||||
|
status: success
|
||||||
title: "A/N BDU PR: ${{ github.event.pull_request.title }}"
|
title: "A/N BDU PR: ${{ github.event.pull_request.title }}"
|
||||||
message: |
|
message: |
|
||||||
A pull request labelled **A/N BDU** needs attention.
|
A pull request labelled **A/N BDU** is pushed.
|
||||||
|
|
||||||
- **Repository:** ${{ github.repository }}
|
- **Repository:** ${{ github.repository }}
|
||||||
- **PR:** [#${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
|
- **PR:** [#${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
|
||||||
|
|||||||
Reference in New Issue
Block a user