diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d3603cbbf9..5bfb3e67e1 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -3,44 +3,15 @@ on: workflow_dispatch: pull_request: branches: [develop] - issue_comment: - types: [created] jobs: test-e2e: - # temporary while new e2e environment is not yet created: - # only trigger on workflow_dispatch, maintainer comment, or if PR is from GSOC project mentor or mentee - if: > - github.event_name == 'workflow_dispatch' || - ( - github.event_name == 'pull_request' && - contains(fromJSON('["Geethegreat", "clairep94"]'), github.event.pull_request.user.login) - ) || - ( - github.event.issue.pull_request && - github.event.comment.body == '/e2e' && - contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) - ) + environment: e2e-tests timeout-minutes: 60 runs-on: ubuntu-latest steps: - - name: Resolve PR head ref - if: github.event_name == 'issue_comment' - id: pr - uses: actions/github-script@v7 - with: - script: | - const { data: pr } = await github.rest.pulls.get({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.issue.number - }); - core.setOutput('sha', pr.head.sha); - - name: Checkout code uses: actions/checkout@v4 - with: - ref: ${{ github.event_name == 'issue_comment' && steps.pr.outputs.sha || github.ref }} - name: Set up node uses: actions/setup-node@v4