update-dependabot.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Update dependabot.yml
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '0 0 * * *' # Once per day at midnight UTC
  6. permissions:
  7. contents: read
  8. jobs:
  9. get-supported-branches:
  10. uses: spring-io/spring-security-release-tools/.github/workflows/retrieve-spring-supported-versions.yml@d615a5694c761901330655fdd0e3721dc4ccf0fe
  11. with:
  12. project: spring-security
  13. type: oss
  14. main:
  15. runs-on: ubuntu-latest
  16. needs: [get-supported-branches]
  17. if: ${{ (github.repository == 'spring-projects/spring-security') && (github.ref == 'refs/heads/main') }}
  18. permissions:
  19. contents: write
  20. steps:
  21. - uses: actions/checkout@v4
  22. with:
  23. fetch-depth: 1
  24. - uses: marcusdacoregio/generate-dependabot-yml@380cfc736e153864e970429ea6a640ce46953a17
  25. name: Update dependabot.yml
  26. with:
  27. gradle-branches: ${{ needs.get-supported-branches.outputs.supported_versions }},main
  28. github-actions-branches: ${{ needs.get-supported-branches.outputs.supported_versions }},main,docs-build
  29. gh-token: ${{ secrets.GITHUB_TOKEN }}
  30. - uses: stefanzweifel/git-auto-commit-action@v5
  31. with:
  32. commit_message: Update dependabot.yml