message: chore: fix CI workflow to run e2e tests only on non-fork PRs
diff: @@ -27,12 +27,13 @@ jobs:
  - run: yarn test
  - run: yarn integration
  - name: Wait for existing workflow to complete before e2e tests
  - if: ${{ matrix.node-version == '12.x' && github.repository == 'serverless-nextjs/serverless-next.js' }}
  + # Note: we only run e2e tests once (using the 12.x version in matrix) and only if this PR is not from a fork
  + if: ${{ matrix.node-version == '12.x' && github.event.pull_request.head.repo.full_name == github.repository }}
  uses: softprops/turnstyle@v1
  env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  - name: Run e2e tests
  - if: ${{ matrix.node-version == '12.x' && github.repository == 'serverless-nextjs/serverless-next.js' }}
  + if: ${{ matrix.node-version == '12.x' && github.event.pull_request.head.repo.full_name == github.repository }}
  env:
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_AT }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ST }}
  