dependabot-auto-merge-forward.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: Auto Merge Forward Dependabot Commits
  2. on:
  3. workflow_dispatch:
  4. permissions:
  5. contents: read
  6. concurrency:
  7. group: dependabot-auto-merge-forward
  8. jobs:
  9. get-supported-branches:
  10. uses: spring-io/spring-security-release-tools/.github/workflows/retrieve-spring-supported-versions.yml@actions-v1
  11. with:
  12. project: spring-security
  13. type: oss
  14. repository_name: spring-projects/spring-security
  15. auto-merge-forward-dependabot:
  16. name: Auto Merge Forward Dependabot Commits
  17. runs-on: ubuntu-latest
  18. needs: [get-supported-branches]
  19. permissions:
  20. contents: write
  21. steps:
  22. - name: Checkout
  23. id: checkout
  24. uses: actions/checkout@v4
  25. - name: Setup GitHub User
  26. id: setup-gh-user
  27. run: |
  28. git config user.name 'github-actions[bot]'
  29. git config user.email 'github-actions[bot]@users.noreply.github.com'
  30. - name: Run Auto Merge Forward
  31. id: run-auto-merge-forward
  32. uses: spring-io/spring-security-release-tools/.github/actions/auto-merge-forward@actions-v1
  33. with:
  34. branches: ${{ needs.get-supported-branches.outputs.supported_versions }},main
  35. from-author: dependabot[bot]
  36. notify_result:
  37. name: Check for failures
  38. needs: [ auto-merge-forward-dependabot ]
  39. if: failure()
  40. runs-on: ubuntu-latest
  41. permissions:
  42. actions: read
  43. steps:
  44. - name: Send Slack message
  45. uses: Gamesight/slack-workflow-status@v1.3.0
  46. with:
  47. repo_token: ${{ secrets.GITHUB_TOKEN }}
  48. slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
  49. channel: '#spring-security-ci'
  50. name: 'CI Notifier'