Skip to content

Commit

Permalink
Attempt to fix after approval workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed May 21, 2024
1 parent 6795e91 commit 43d2104
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/after-approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@ 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 }}
cancel-in-progress: true

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 }}
Expand All @@ -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

0 comments on commit 43d2104

Please sign in to comment.