Skip to content

Commit

Permalink
[Lexical] Attempt to fix after approval workflow (#6153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm authored May 23, 2024
1 parent 80398d0 commit 5351e8e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/after-approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -17,16 +13,14 @@ jobs:
if: github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'extended-tests')
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Add label for extended tests
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.ADD_LABEL_PAT }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
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

0 comments on commit 5351e8e

Please sign in to comment.