Skip to content

CGU : Changement de l'adresse de contact du DPO #1376

CGU : Changement de l'adresse de contact du DPO

CGU : Changement de l'adresse de contact du DPO #1376

Workflow file for this run

name: 📢 Notify Slack of changed PR
on:
pull_request:
types: [closed]
jobs:
notify:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-pull_request-workflow-when-a-pull-request-merges
if: >
github.event.pull_request.merged == true
&& !contains(github.event.pull_request.labels.*.name, 'dependencies')
runs-on: ubuntu-latest
steps:
- name: "📢 Notify the #mep-c1 channel"
# Can't use `!contains(...)` because it give us a "tag suffix cannot contain flow indicator characters" error.
# Oddly enough, using `if: > !contains(...)` works...
if: contains(github.event.pull_request.labels.*.name, 'no-changelog') == false
uses: slackapi/[email protected]
with:
webhook: ${{ secrets.SLACK_MEP_C1_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
text: >-
${{ format('<{0}|{1}>', github.event.pull_request.html_url, github.event.pull_request.title) }}
- name: "📢 Notify the #mep-c2 channel"
if: contains(github.event.pull_request.labels.*.name, 'pilotage')
uses: slackapi/[email protected]
with:
webhook: ${{ secrets.SLACK_MEP_C2_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
text: >-
${{ format('<{0}|{1}>', github.event.pull_request.html_url, github.event.pull_request.title) }}