]> source.dussan.org Git - sonarqube.git/commitdiff
BUILD-756 Migrate dogfood merge task to GH actions
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Thu, 20 Feb 2020 11:30:07 +0000 (12:30 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 5 Mar 2020 20:04:25 +0000 (20:04 +0000)
.github/workflows/dogfood.yml [new file with mode: 0644]

diff --git a/.github/workflows/dogfood.yml b/.github/workflows/dogfood.yml
new file mode 100644 (file)
index 0000000..a0d001a
--- /dev/null
@@ -0,0 +1,29 @@
+name: Dogfood merge
+on:
+  push:
+    branches:
+      - master
+      - "dogfood/**"
+  delete:
+    branches:
+      - "dogfood/**"
+jobs:
+  dogfood_merge:
+    # prevent job to run on public repository sonarsource/sonarqube
+    if: github.repository == 'sonarsource/sonar-enterprise'
+    runs-on: ubuntu-latest
+    name: Update dogfood-on-next branch
+    steps:
+      - name: Merge dogfood and master branches
+        uses: SonarSource/gh-action_dogfood_merge@1
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_ORG_TOKEN }}
+        with:
+          dogfood-branch: "dogfood-on-next"
+      - name: Notify failures on Slack
+        if: failure()
+        uses: Ilshidur/action-slack@2.0.0
+        env:
+          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
+        with:
+          args: "Failed to merge dogfood and master branches, see the logs at https://github.com/SonarSource/sonar-enterprise/actions"