File tree 1 file changed +24
-2
lines changed
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: Development Snapshot
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
+ repo_url :
7
+ description : ' Repo Manifest URL'
8
+ default : ' https://github.com/compnerd/swift-build'
9
+ required : false
10
+ type : string
11
+
6
12
swift_version :
7
13
description : ' Swift Version'
8
14
default : ' 0.0.0'
48
54
default : false
49
55
type : boolean
50
56
57
+ stable_point :
58
+ description : ' Use Repo Smart Sync'
59
+ type : boolean
60
+ default : false
61
+ required : false
62
+
51
63
workflow_call :
52
64
inputs :
53
65
swift_version :
120
132
default : false
121
133
type : boolean
122
134
135
+ stable_point :
136
+ description : ' Use Repo Smart Sync'
137
+ type : boolean
138
+ default : false
139
+ required : false
140
+
123
141
secrets :
124
142
SYMBOL_SERVER_PAT :
125
143
required : true
@@ -227,8 +245,12 @@ jobs:
227
245
branch_name="release/$branch_version_string"
228
246
fi
229
247
230
- repo init --quiet --groups default --depth 1 -u https://github.com/compnerd/swift-build -b $branch_name
231
- repo sync --quiet --no-clone-bundle --no-tags --jobs $(nproc --all)
248
+ repo init --quiet --groups default --depth 1 -u ${{ inputs.repo_url }} -b $branch_name
249
+ if [[ "${{ inputs.stable_pointer }}" == "true" ]]; then
250
+ repo sync --quiet --no-clone-bundle --no-tags --jobs $(nproc --all) -s
251
+ else
252
+ repo sync --quiet --no-clone-bundle --no-tags --jobs $(nproc --all)
253
+ fi
232
254
233
255
if [[ "${{ inputs.swift_tag }}" != "" ]] ; then
234
256
tee -a "${GITHUB_OUTPUT}" <<-EOF
You can’t perform that action at this time.
0 commit comments