mirror of
https://github.com/ntdevlabs/tiny11builder.git
synced 2025-12-18 09:24:12 +00:00
Remove scratch_drive input - workflow will auto-select drive
This commit is contained in:
parent
35a21e620d
commit
ad70ab47fe
1 changed files with 2 additions and 22 deletions
24
.github/workflows/build-tiny11.yml
vendored
24
.github/workflows/build-tiny11.yml
vendored
|
|
@ -19,11 +19,6 @@ on:
|
|||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
scratch_drive:
|
||||
description: 'Scratch drive letter (C-Z, leave empty for script root)'
|
||||
required: false
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -230,11 +225,10 @@ jobs:
|
|||
run: |
|
||||
$scriptType = "${{ inputs.script_type }}"
|
||||
$isoDrive = $env:ISO_DRIVE
|
||||
$scratchDrive = "${{ inputs.scratch_drive }}"
|
||||
|
||||
Write-Host "Running script: $scriptType.ps1"
|
||||
Write-Host "ISO Drive: $isoDrive"
|
||||
Write-Host "Scratch Drive: $scratchDrive"
|
||||
Write-Host "Scratch Drive: Auto (script root)"
|
||||
Write-Host "Working Directory: $PWD"
|
||||
Write-Host "GITHUB_WORKSPACE: $env:GITHUB_WORKSPACE"
|
||||
|
||||
|
|
@ -273,9 +267,7 @@ jobs:
|
|||
$wrapperParams = @{
|
||||
ISODrive = "$isoDrive`:"
|
||||
}
|
||||
if ("$scratchDrive" -ne "") {
|
||||
$wrapperParams.ScratchDrive = "$scratchDrive"
|
||||
}
|
||||
# ScratchDrive not provided - script will use script root automatically
|
||||
& $makerWrapper @wrapperParams
|
||||
$exitCode = $LASTEXITCODE
|
||||
} else {
|
||||
|
|
@ -361,18 +353,6 @@ jobs:
|
|||
Write-Host "Found ISO: $($_.FullName)"
|
||||
}
|
||||
|
||||
# Check scratch drive if specified
|
||||
$scratchDrive = "${{ inputs.scratch_drive }}"
|
||||
if ($scratchDrive -ne "") {
|
||||
$scratchPath = "$scratchDrive`:\tiny11"
|
||||
Write-Host "Checking scratch path: $scratchPath"
|
||||
if (Test-Path $scratchPath) {
|
||||
Get-ChildItem -Path $scratchPath -Filter "*.iso" -Recurse -ErrorAction SilentlyContinue | ForEach-Object {
|
||||
Write-Host "Found ISO in scratch: $($_.FullName)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Check system drive
|
||||
$systemDrive = $env:SystemDrive
|
||||
$systemTiny11Path = "$systemDrive\tiny11"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue