feat: add empty option guard and minor cleanup

This commit is contained in:
Tieu Long committed 2026-03-02 06:02:41 +07:00
1 parent 27df8b4f17
commit 0e0539b966
17 files changed
+34 -4

No files matched your search

+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Big Sur'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Catalina'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'El Capitan'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'High Sierra'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Lion'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Mavericks'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Mojave'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Monterey'
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Mountain Lion'
+2 -2
View File
@@ -8,6 +8,7 @@ on:
required: true
type: choice
options:
- ''
- 'Tahoe'
- 'Sequoia'
- 'Sonoma'
@@ -24,6 +25,7 @@ on:
jobs:
build-recovery-iso:
if: ${{ inputs.macos_version != '' }}
runs-on: macos-latest
permissions:
contents: write # needed to create releases
@@ -147,8 +149,6 @@ jobs:
echo "Compressing ISO with zip..."
zip -j "$ZIP_FILE" "$ISO_FILE"
COMPRESSED_SIZE=$(du -h "$ZIP_FILE" | cut -f1)
echo "compressed_file=$ZIP_FILE" >> $GITHUB_OUTPUT
- name: Upload Recovery ISO artifact
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Sequoia'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Sierra'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Sonoma'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Tahoe'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Ventura'
+2
View File
@@ -8,11 +8,13 @@ on:
required: true
type: choice
options:
- ''
- 'iso'
- 'dmg'
jobs:
build:
if: ${{ inputs.image_format != '' }}
uses: ./.github/workflows/build-macos-template.yml
with:
macos_version: 'Yosemite'
+2 -2
View File
@@ -7,13 +7,13 @@ on:
jobs:
refresh-forks:
if: github.repository_owner == 'LongQT-sea' # Be mindful of free public resources
runs-on: ubuntu-latest
runs-on: ubuntu-slim
permissions:
contents: write # needed to create releases
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Fetch fork data
id: fetch_forks