From e9f2c2d5a7bc0fbd35218b64f42e066a2f02059e Mon Sep 17 00:00:00 2001 From: andrewstech Date: Sun, 4 Aug 2024 15:26:05 +0100 Subject: [PATCH] Update cla.yml --- .github/workflows/cla.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index e13b6079..cf703520 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -32,14 +32,22 @@ jobs: remote-organization-name: 'open-domains' remote-repository-name: 'cla' - - name: add label + - name: add CLA signed uses: actions-ecosystem/action-add-labels@v1 if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' with: labels: "CLA signed" github_token: ${{ steps.create_token.outputs.token }} + - name: remove CLA required + uses: actions-ecosystem/action-remove-labels@v1 + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + with: + labels: "CLA Required" + github_token: ${{ steps.create_token.outputs.token }} + - if: ${{ failure() }} + name: Add CLA required uses: actions-ecosystem/action-add-labels@v1 with: labels: "CLA Required"