From baadabd91014cb4139bc0aa7a526af9dae5d813a Mon Sep 17 00:00:00 2001
From: s3krit <pugh@s3kr.it>
Date: Sat, 27 Jun 2020 02:14:02 +0200
Subject: [PATCH] add burnin-label-notification.yml (#1324)

---
 .../workflows/burnin-label-notification.yml     | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 polkadot/.github/workflows/burnin-label-notification.yml

diff --git a/polkadot/.github/workflows/burnin-label-notification.yml b/polkadot/.github/workflows/burnin-label-notification.yml
new file mode 100644
index 00000000000..203685b706d
--- /dev/null
+++ b/polkadot/.github/workflows/burnin-label-notification.yml
@@ -0,0 +1,17 @@
+name: Notify devops when burn-in label applied
+on:
+  pull_request:
+    types: [labeled]
+
+jobs:
+  notify-devops:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Notify devops
+        if: github.event.label.name == 'A1-needsburnin'
+        uses: s3krit/matrix-message-action@v0.0.2
+        with:
+          room_id: ${{ secrets.POLKADOT_DEVOPS_MATRIX_ROOM_ID }}
+          access_token: ${{ secrets.POLKADOT_DEVOPS_MATRIX_ACCESS_TOKEN }}
+          message: "@room Burn-in request received for the following PR: ${{ github.event.pull_request.html_url }}"
+          server: "matrix.parity.io"
-- 
GitLab