feat: add empty option guard and minor cleanup
This commit is contained in:
17 files changed
+34
-4
No files matched your search
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Big Sur'
|
macos_version: 'Big Sur'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Catalina'
|
macos_version: 'Catalina'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'El Capitan'
|
macos_version: 'El Capitan'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'High Sierra'
|
macos_version: 'High Sierra'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Lion'
|
macos_version: 'Lion'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Mavericks'
|
macos_version: 'Mavericks'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Mojave'
|
macos_version: 'Mojave'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Monterey'
|
macos_version: 'Monterey'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Mountain Lion'
|
macos_version: 'Mountain Lion'
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'Tahoe'
|
- 'Tahoe'
|
||||||
- 'Sequoia'
|
- 'Sequoia'
|
||||||
- 'Sonoma'
|
- 'Sonoma'
|
||||||
@@ -24,6 +25,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-recovery-iso:
|
build-recovery-iso:
|
||||||
|
if: ${{ inputs.macos_version != '' }}
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # needed to create releases
|
contents: write # needed to create releases
|
||||||
@@ -147,8 +149,6 @@ jobs:
|
|||||||
|
|
||||||
echo "Compressing ISO with zip..."
|
echo "Compressing ISO with zip..."
|
||||||
zip -j "$ZIP_FILE" "$ISO_FILE"
|
zip -j "$ZIP_FILE" "$ISO_FILE"
|
||||||
|
|
||||||
COMPRESSED_SIZE=$(du -h "$ZIP_FILE" | cut -f1)
|
|
||||||
echo "compressed_file=$ZIP_FILE" >> $GITHUB_OUTPUT
|
echo "compressed_file=$ZIP_FILE" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload Recovery ISO artifact
|
- name: Upload Recovery ISO artifact
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Sequoia'
|
macos_version: 'Sequoia'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Sierra'
|
macos_version: 'Sierra'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Sonoma'
|
macos_version: 'Sonoma'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Tahoe'
|
macos_version: 'Tahoe'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Ventura'
|
macos_version: 'Ventura'
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- ''
|
||||||
- 'iso'
|
- 'iso'
|
||||||
- 'dmg'
|
- 'dmg'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.image_format != '' }}
|
||||||
uses: ./.github/workflows/build-macos-template.yml
|
uses: ./.github/workflows/build-macos-template.yml
|
||||||
with:
|
with:
|
||||||
macos_version: 'Yosemite'
|
macos_version: 'Yosemite'
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
refresh-forks:
|
refresh-forks:
|
||||||
if: github.repository_owner == 'LongQT-sea' # Be mindful of free public resources
|
if: github.repository_owner == 'LongQT-sea' # Be mindful of free public resources
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-slim
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # needed to create releases
|
contents: write # needed to create releases
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Fetch fork data
|
- name: Fetch fork data
|
||||||
id: fetch_forks
|
id: fetch_forks
|
||||||
|
|||||||
Reference in new issue
Block a user