File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 12
12
checkout_pr :
13
13
type : string
14
14
description : Checkout PR
15
+ void_commit :
16
+ type : string
17
+ description : Checkout specific Void commit
18
+
15
19
repository_dispatch :
16
20
types : [stable]
17
21
push :
72
76
if : env.VSCODE_ARCH == 'x64'
73
77
74
78
- name : Clone VSCode repo
79
+ env :
80
+ VOID_COMMIT : ${{ github.event.inputs.void_commit }}
75
81
run : . get_repo.sh
76
82
77
83
- name : Check PR or cron
Original file line number Diff line number Diff line change @@ -33,8 +33,16 @@ cd vscode || { echo "'vscode' dir not found"; exit 1; }
33
33
git init -q
34
34
git remote add origin https://github.com/voideditor/void.git
35
35
36
- git fetch --depth 1 origin " ${VOID_BRANCH} "
37
- git checkout FETCH_HEAD
36
+ if [[ -n " ${VOID_COMMIT} " ]]; then
37
+ echo " Using explicit commit ${VOID_COMMIT} "
38
+ # Fetch just that commit to keep the clone shallow.
39
+ git fetch --depth 1 origin " ${VOID_COMMIT} "
40
+ git checkout " ${VOID_COMMIT} "
41
+ else
42
+ git fetch --depth 1 origin " ${VOID_BRANCH} "
43
+ git checkout FETCH_HEAD
44
+ fi
45
+
38
46
39
47
MS_COMMIT=$VOID_BRANCH # VSCodium named this incorrectly, it should be called branch not commit
40
48
MS_TAG=$( jq -r ' .voidVersion' " product.json" )
You can’t perform that action at this time.
0 commit comments