Skip to content

Commit e8c3d14

Browse files
committed
Only gh pr create requires the remote upstream
1 parent cf718d3 commit e8c3d14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ workflow:
77

88
default:
99
interruptible: true
10-
before_script:
11-
- git remote add upstream https://github.com/MatrixAI/TypeScript-Demo-Lib-Native.git
1210

1311
variables:
1412
GIT_SUBMODULE_STRATEGY: recursive
@@ -99,6 +97,9 @@ build:merge:
9997
# Don't interrupt pr creation job
10098
interruptible: false
10199
allow_failure: true
100+
before_script:
101+
# Required for `gh pr create`
102+
- git remote add upstream https://github.com/MatrixAI/TypeScript-Demo-Lib-Native.git
102103
script:
103104
- >
104105
nix-shell -I nixpkgs=./pkgs.nix --packages git gitAndTools.gh --run '

0 commit comments

Comments
 (0)