update-dependabot.yml 1.2 KB

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