name: Release Drafter
on:
  push:
    branches: [ main ]
  pull_request:
    types: [opened, reopened, synchronize, closed]
    branches: [ main ]

permissions:
  contents: write
  pull-requests: read

jobs:
  update_release_draft:
    runs-on: ubuntu-latest
    steps:
      - uses: release-drafter/release-drafter@v6
        with:
          config-name: release-drafter.yml
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
