From 7afcb8236b50dabe161f3e9a3cc9f6bfcd8a6616 Mon Sep 17 00:00:00 2001 From: Ikechukwu Uchendu Date: Sun, 24 Sep 2023 15:30:36 +0000 Subject: [PATCH] updated workflow so that closed pull requests add to contributors --- .github/workflows/auto-add-contributors.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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