diff --git a/.github/workflows/auto-add-contributors.yml b/.github/workflows/auto-add-contributors.yml index 0a947748..706d0693 100644 --- a/.github/workflows/auto-add-contributors.yml +++ b/.github/workflows/auto-add-contributors.yml @@ -1,12 +1,17 @@ name: Automatically Add Contributors -run-name: ${{ github.actor }} is updating TinyML book contributors on: push: branches: - main + - main + pull_request: + branches: + - main + types: + - closed jobs: update-contributors: + if: (github.event_name == 'push') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) runs-on: ubuntu-latest steps: - name: Checkout repository