Skip to content

Commit 0460874

Browse files
committed
chore: fix-fork-ci
track the proper main on fork flow
1 parent 049e5b2 commit 0460874

File tree

2 files changed

+5
-87
lines changed

2 files changed

+5
-87
lines changed

.github/workflows/ci-fork.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ jobs:
4747
4848
- run: pnpm exec playwright install --with-deps
4949

50-
- uses: nrwl/nx-set-shas@v4
50+
- name: Track base repository main
51+
run: |
52+
git fetch origin +refs/heads/main:refs/remotes/upstream/main
53+
git branch --force main upstream/main
5154
52-
# Needed so nx affected can diff against main
53-
- run: git branch --track main origin/main || true
55+
- uses: nrwl/nx-set-shas@v4
5456

5557
- run: pnpm nx format:check
5658
- run: pnpm nx affected -t build typecheck lint test e2e-ci --no-agents

.zed/tasks.json

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)