diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2020-02-20 12:30:07 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-03-05 20:04:25 +0000 |
commit | e42e569931baf23b20da3b00a21080e1d7181952 (patch) | |
tree | 485b1031f61f6417d5a0dfbd84e1409c852bdd2b /.github | |
parent | e8c7e2c2387914fc0da055177b0534004574a840 (diff) | |
download | sonarqube-e42e569931baf23b20da3b00a21080e1d7181952.tar.gz sonarqube-e42e569931baf23b20da3b00a21080e1d7181952.zip |
BUILD-756 Migrate dogfood merge task to GH actions
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/dogfood.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/dogfood.yml b/.github/workflows/dogfood.yml new file mode 100644 index 00000000000..a0d001a5bdf --- /dev/null +++ b/.github/workflows/dogfood.yml @@ -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" |