name: Remove Awaiting Author Label

on:
  pull_request:
    types: [synchronize, review_requested]

jobs:
  remove_label:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
      - uses: actions/checkout@v4
      - uses: actions-ecosystem/action-remove-labels@v1
        with:
          labels: "meta: awaiting author"