From 06b343413a37ad4a09961b03555b0339f057030f Mon Sep 17 00:00:00 2001 From: Jumar Macato <16554748+jmacato@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:14:55 +0800 Subject: [PATCH] Update CLA.yml --- .github/workflows/CLA.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CLA.yml b/.github/workflows/CLA.yml index e0446fe893..ac3d7060e6 100644 --- a/.github/workflows/CLA.yml +++ b/.github/workflows/CLA.yml @@ -7,18 +7,16 @@ on: jobs: Runner: - runs-on: ubuntu-latest + runs-on: ubuntu-latest0 steps: - - name: 'Clone bot repo' - if: (github.event.comment.user.login != 'cla-avalonia') || github.event_name == 'pull_request_target' + if: ${{ github.event.issue.pull_request }} && ((github.event.comment.user.login != 'cla-avalonia') || github.event_name == 'pull_request_target') run : | rm -rf ./github-action/ git clone https://${{ secrets.CLA_PAT }}:@github.com/AvaloniaUI/AvaloniaCLABot --branch=main --depth=1 --recursive CLABot - name: "Run CLA bot" - - if: (github.event.comment.user.login != 'cla-avalonia') || github.event_name == 'pull_request_target' + if: ${{ github.event.issue.pull_request }} && ((github.event.comment.user.login != 'cla-avalonia') || github.event_name == 'pull_request_target') uses: ./CLABot env: PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_PAT }}