  on:
    push:
      branches:
        - main

  permissions:
    contents: write
    pull-requests: write

  name: Create release PR

  jobs:
    release-please:
      runs-on: ubuntu-latest
      steps:
        - uses: google-github-actions/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3.7.13
          with:
            release-type: simple
            token: ${{ secrets.HBA_RELEASE_PLEASE_TOKEN }}
            pull-request-header: ":rocket: New release"
            changelog-types: '[{"type":"feat","section":":sparkles: Features","hidden":false},{"type":"fix","section":":bug: Bug Fixes","hidden":false},{"type":"chore","section":":hammer: Housekeeping","hidden":false},{"type":"docs","section":":memo: Documentation","hidden":false},{"type":"ci","section":":construction_worker: CI/CD","hidden":false},{"type":"perf","section":":zap: Performance","hidden":false},{"type":"refactor","section":":recycle: Refactoring","hidden":false},{"type":"style","section":":art: Style","hidden":false},{"type":"test","section":":white_check_mark: Tests","hidden":false}]'
