File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ jobs:
229229 target = targets[0];
230230 });
231231
232+ const privateRepo = GitHub.context.payload.repository?.private ?? false;
232233 await core.group(`Set includes`, async () => {
233234 let includes = [];
234235 const platforms = def.target[target].platforms || [];
@@ -244,7 +245,7 @@ jobs:
244245 includes.push({
245246 index: index,
246247 platform: platform,
247- runner: GitHub.isGHES && platform.startsWith('linux/arm') ? 'ubuntu-24.04-arm' : 'ubuntu-24.04'
248+ runner: (!privateRepo && platform.startsWith('linux/arm')) ? 'ubuntu-24.04-arm' : 'ubuntu-24.04' // FIXME: ubuntu-24.04-arm runner not yet available for private repos
248249 });
249250 });
250251 }
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ jobs:
184184
185185 const inpBuildPlatforms = Util.getInputList('build-platforms');
186186
187+ const privateRepo = GitHub.context.payload.repository?.private ?? false;
187188 await core.group(`Set includes`, async () => {
188189 let includes = [];
189190 if (inpBuildPlatforms.length > inpMatrixSizeLimit) {
@@ -198,7 +199,7 @@ jobs:
198199 includes.push({
199200 index: index,
200201 platform: platform,
201- runner: GitHub.isGHES && platform.startsWith('linux/arm') ? 'ubuntu-24.04-arm' : 'ubuntu-24.04'
202+ runner: (!privateRepo && platform.startsWith('linux/arm')) ? 'ubuntu-24.04-arm' : 'ubuntu-24.04' // FIXME: ubuntu-24.04-arm runner not yet available for private repos
202203 });
203204 });
204205 }
You can’t perform that action at this time.
0 commit comments