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

Commit 1972abf

Browse files
authored
chore: proper checkout of PRs for e2e tests (#687)
1 parent 808a788 commit 1972abf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ jobs:
1616
pr_git_sha: ${{ steps.set_pr_git_sha.outputs.pr_git_sha }}
1717

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

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

6163
steps:
64+
# For non-fork PRs
6265
- uses: actions/checkout@v2
66+
if: ${{ github.event.inputs.pull_request_id == '' }}
67+
68+
# For manually run PRs
69+
- name: Initialize empty git repository
70+
if: ${{ github.event.inputs.pull_request_id != '' }}
71+
run: git init --initial-branch serverless-next-js-placeholder
6372

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

0 commit comments

Comments
 (0)