CGU : Changement de l'adresse de contact du DPO #1376
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) }} |