From a9c2a4ba8e3549018be5177a5bb55a2df5a06171 Mon Sep 17 00:00:00 2001 From: bin Date: Wed, 6 Oct 2021 17:29:18 +0800 Subject: [PATCH] GitHubActions: fix invalid format of require-pr-porting-labels.yaml The yaml file has an indent issue from line 15. And the branches filter should be under pull_request_target but not the pull_request trigger. Also actions/checkout@v2 does not need the token parameter. Fixes: #2798 Signed-off-by: bin --- .github/workflows/require-pr-porting-labels.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/require-pr-porting-labels.yaml b/.github/workflows/require-pr-porting-labels.yaml index d112d34298..3f38071947 100644 --- a/.github/workflows/require-pr-porting-labels.yaml +++ b/.github/workflows/require-pr-porting-labels.yaml @@ -12,8 +12,7 @@ on: - reopened - labeled - unlabeled - pull_request: - branches: + branches: - main jobs: @@ -32,8 +31,6 @@ jobs: - name: Checkout code to allow hub to communicate with the project uses: actions/checkout@v2 - with: - token: ${{ secrets.KATA_GITHUB_ACTIONS_TOKEN }} - name: Install porting checker script run: |