diff --git a/.github/workflows/after-approval.yml b/.github/workflows/after-approval.yml index 75f494a6388..bfbd147106d 100644 --- a/.github/workflows/after-approval.yml +++ b/.github/workflows/after-approval.yml @@ -3,10 +3,6 @@ name: After Approval on: pull_request_review: types: [submitted] - pull_request_target: - types: [review_requested, opened, reopened, synchronize] - branches: - - 'main' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -14,11 +10,13 @@ concurrency: jobs: label-pr: - if: github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'extended-tests') + if: github.event.review.state == 'commented' && !contains(github.event.pull_request.labels.*.name, 'extended-tests') runs-on: ubuntu-latest permissions: + contents: read pull-requests: write steps: + - uses: actions/checkout@v4 - name: Add label for extended tests env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -27,6 +25,6 @@ jobs: run: | echo "Adding label 'extended-tests' to PR $NUMBER" gh pr edit "$NUMBER" --add-label "extended-tests" || (echo "Failed to add label" && exit 1) - e2e-tests: - needs: label-pr - uses: ./.github/workflows/call-e2e-all-tests.yml + # e2e-tests: + # needs: label-pr + # uses: ./.github/workflows/call-e2e-all-tests.yml