Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

sync-lts-branch.yml 1013B

123456789101112131415161718192021222324252627282930
  1. name: Sync LTS branch
  2. on:
  3. schedule:
  4. # at 20:00 daily
  5. - cron: "0 20 * * *"
  6. jobs:
  7. sync_lts:
  8. # prevent job to run on public repository sonarsource/sonarqube
  9. if: github.repository == 'sonarsource/sonar-enterprise'
  10. runs-on: ubuntu-latest
  11. name: Sync LTS branch of sonarsource/sonar-enterprise with sonarsource/sonarqube
  12. steps:
  13. - name: Fetch code
  14. uses: actions/checkout@v2
  15. with:
  16. token: ${{ secrets.GITHUB_ORG_TOKEN }}
  17. ref: master
  18. path: repo
  19. - name: Sync LTS branch
  20. run: ./repo/private/sync-public-git-branches.sh
  21. env:
  22. GITHUB_ORG_TOKEN: ${{ secrets.GITHUB_ORG_TOKEN }}
  23. BRANCH_NAME: branch-7.9
  24. - name: Notify failures on Slack
  25. if: failure()
  26. uses: Ilshidur/action-slack@2.0.0
  27. env:
  28. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
  29. with:
  30. args: "Nightly public sync failed, see the logs at https://github.com/SonarSource/sonar-enterprise/actions"