aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/dogfood.yml
blob: 135136c90e7e9c5a152c7c607c4b7a2e5a3788b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Dogfood merge
on:
  push:
    branches:
      - master
      - "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"