File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 83
83
# use this to avoid rebuilding it if nothing changed
84
84
- name : Get latest lib/vscode rev
85
85
id : vscode-rev
86
- run : echo "::set-output name=rev::$(git log -1 --format='%H' lib/vscode)"
86
+ run : |
87
+ ./ci/steps/git-deepen.sh
88
+ echo "::set-output name=rev::$(git log -1 --format='%H' ./lib/vscode)"
87
89
88
90
- name : Attempt to fetch vscode build from cache
89
91
id : cache-vscode
@@ -165,7 +167,7 @@ jobs:
165
167
test-e2e :
166
168
name : End-to-end tests
167
169
needs : linux-amd64
168
- runs-on : ubuntu-16.04
170
+ runs-on : ubuntu-latest
169
171
env :
170
172
PASSWORD : e45432jklfdsab
171
173
CODE_SERVER_ADDRESS : http://localhost:8080
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # progressively deepen a clone until we reach a non-grafted commit.
5
+ # used for getting the last lib/vscode commit for caching builds
6
+ # without pulling the whole git history for performance reasons.
7
+ main () {
8
+ cd " $( dirname " $0 " ) /../.."
9
+
10
+ while git log -1 --oneline --decorate lib/vscode | grep grafted; do
11
+ git fetch --deepen=10
12
+ done
13
+ }
14
+
15
+ main " $@ "
You can’t perform that action at this time.
0 commit comments