diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2020-05-05 18:41:21 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-05-06 20:03:54 +0000 |
commit | 27fc162f337411961b071f11af8b98dbf883c241 (patch) | |
tree | 160f4022384d47cdf7d7b4821a8283ccb7caf299 /.github | |
parent | 0e22b95393ab05991c17d017100f1413e9992ce7 (diff) | |
download | sonarqube-27fc162f337411961b071f11af8b98dbf883c241.tar.gz sonarqube-27fc162f337411961b071f11af8b98dbf883c241.zip |
Add 8.3 sync github action
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/sync-8.3-branch.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/sync-8.3-branch.yml b/.github/workflows/sync-8.3-branch.yml new file mode 100644 index 00000000000..7915440a648 --- /dev/null +++ b/.github/workflows/sync-8.3-branch.yml @@ -0,0 +1,30 @@ +name: Sync 8.3 branch +on: + schedule: + # at 20:00 daily + - cron: "0 20 * * *" +jobs: + sync_lts: + # prevent job to run on public repository sonarsource/sonarqube + if: github.repository == 'sonarsource/sonar-enterprise' + runs-on: ubuntu-latest + name: Sync 8.3 branch of sonarsource/sonar-enterprise with sonarsource/sonarqube + steps: + - name: Fetch code + uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_ORG_TOKEN }} + ref: master + path: repo + - name: Sync LTS branch + run: ./repo/private/sync-public-git-branches.sh + env: + GITHUB_ORG_TOKEN: ${{ secrets.GITHUB_ORG_TOKEN }} + BRANCH_NAME: branch-8.3 + - name: Notify failures on Slack + if: failure() + uses: Ilshidur/action-slack@2.0.0 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + with: + args: "Nightly public sync failed, see the logs at https://github.com/SonarSource/sonar-enterprise/actions" |