name: Update release notes

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  update_release_notes:
    runs-on: ubuntu-latest
    if: github.repository == 'dosbox-staging/dosbox-staging'
    steps:
      - uses: release-drafter/release-drafter@v5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
