You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

upgrade-plugins.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Upgrade SonarQube bundled plugins
  2. on:
  3. # use push to test the bot
  4. # push:
  5. # branches-ignore:
  6. # - 'bot/upgrade_plugins**'
  7. schedule:
  8. # at 9 every Monday
  9. - cron: '0 9 * * MON'
  10. jobs:
  11. upgrade-plugins-job:
  12. # prevent job to run on public repository sonarsource/sonarqube (where action sources are not available)
  13. if: github.repository == 'sonarsource/sonar-enterprise'
  14. runs-on: ubuntu-latest
  15. name: Upgrades the version of plugins bundled into SonarQube
  16. steps:
  17. - uses: actions/checkout@v1
  18. with:
  19. fetch-depth: 1
  20. ref: master
  21. - name: Upgrade plugins in build and create JIRA ticket
  22. id: upgrade-plugins
  23. uses: ./private/github/actions/upgrade-plugins
  24. env:
  25. GITHUB_ORG_TOKEN: ${{ secrets.GITHUB_ORG_TOKEN }}
  26. JIRA_LOGIN: ${{ secrets.JIRA_LOGIN }}
  27. JIRA_PASSWORD: ${{ secrets.JIRA_PASSWORD }}
  28. REPOX_API_KEY: ${{ secrets.REPOX_API_KEY }}
  29. REPOX_LOGIN: ${{ secrets.REPOX_LOGIN }}
  30. with:
  31. build_gradle_path: build.gradle
  32. - name: Create Pull Request
  33. if: steps.upgrade-plugins.outputs.has_changes == 'true'
  34. uses: peter-evans/create-pull-request@v1.5.1
  35. env:
  36. COMMIT_MESSAGE: ${{ steps.upgrade-plugins.outputs.commit_message }}
  37. GITHUB_TOKEN: ${{ secrets.GITHUB_ORG_TOKEN }}
  38. PULL_REQUEST_TITLE: ${{ steps.upgrade-plugins.outputs.commit_message }}
  39. PULL_REQUEST_BODY: Auto-generated pull request to apply plugin upgrades. Release notes in [${{ steps.upgrade-plugins.outputs.jira_ticket }}](https://jira.sonarsource.com/browse/${{ steps.upgrade-plugins.outputs.jira_ticket }}).
  40. PULL_REQUEST_BRANCH: bot/upgrade_plugins
  41. BRANCH_SUFFIX: timestamp
  42. PULL_REQUEST_LABELS: bot