name: merge pull-request
on:
    pull_request:
        types:
            - labeled
jobs:
    merge:
        runs-on: ubuntu-latest
        steps:
            - name: merge pull request
              uses: sudo-bot/action-pull-request-merge@v1.1.1
              with:
                  github-token: ${{ secrets.SUDO_BOT_TOKEN }}
                  number: ${{ github.event.pull_request.number }}
                  allowed-usernames-regex: ^williamdes$
                  filter-label: merge-it
                  merge-method: fast-forward
