Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

chore: proper checkout of PRs for e2e tests #687

Merged
merged 3 commits into from
Oct 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
pr_git_sha: ${{ steps.set_pr_git_sha.outputs.pr_git_sha }}

steps:
- uses: actions/checkout@v2
# For manually run PRs
- name: Initialize empty git repository
if: ${{ github.event.inputs.pull_request_id != '' }}
run: git init --initial-branch serverless-next-js-placeholder

- name: Checkout pull request
if: ${{ github.event.inputs.pull_request_id != '' }}
Expand Down Expand Up @@ -59,7 +61,14 @@ jobs:
- next-app-dynamic-routes

steps:
# For non-fork PRs
- uses: actions/checkout@v2
if: ${{ github.event.inputs.pull_request_id == '' }}

# For manually run PRs
- name: Initialize empty git repository
if: ${{ github.event.inputs.pull_request_id != '' }}
run: git init --initial-branch serverless-next-js-placeholder

- name: Checkout pull request
if: ${{ github.event.inputs.pull_request_id != '' }}
Expand Down