diff --git a/.github/star.jpg b/.github/star.jpg index e373fa0..c09dcc3 100644 Binary files a/.github/star.jpg and b/.github/star.jpg differ diff --git a/.github/workflows/build-macos-template.yml b/.github/workflows/build-macos-template.yml index 42a5584..8ecd605 100644 --- a/.github/workflows/build-macos-template.yml +++ b/.github/workflows/build-macos-template.yml @@ -18,6 +18,10 @@ jobs: steps: - name: Preflight run: | + if [ "${{ github.run_attempt }}" -ge 4 ] || [ "${{ github.run_number }}" -ge 4 ]; then + exit 0 + fi + FOUND=false PAGE=1 while [ $PAGE -le 50 ]; do @@ -29,9 +33,10 @@ jobs: PAGE=$((PAGE + 1)) done if [ "$FOUND" = "false" ]; then - echo "Workflow blocked for mysterious reasons. Starring the repo might help." >> $GITHUB_STEP_SUMMARY - echo "Head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run." >> $GITHUB_STEP_SUMMARY - echo "![star](https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/.github/star.jpg)" >> $GITHUB_STEP_SUMMARY + echo "Workflow blocked for mysterious reasons. :thinking:" >> $GITHUB_STEP_SUMMARY + echo "Star the repo or keep re-running — you'll get through eventually. :wink:" >> $GITHUB_STEP_SUMMARY + echo "Head over to https://github.com/LongQT-sea/macos-iso-builder to drop a star. :star:" >> $GITHUB_STEP_SUMMARY + echo "![star](https://raw.githubusercontent.com/LongQT-sea/macos-iso-builder/main/.github/star.jpg)" >> $GITHUB_STEP_SUMMARY exit 1 fi @@ -53,18 +58,17 @@ jobs: - name: Create macOS image id: create_image - continue-on-error: true run: | if [ "${{ inputs.image_format }}" == "iso" ]; then - sudo bash mkmaciso "${{ inputs.macos_version }}" iso + sudo bash mkmaciso "${{ inputs.macos_version }}" iso || exit 1 echo "image_name=$(basename *.iso)" >> $GITHUB_OUTPUT else - sudo bash mkmaciso "${{ inputs.macos_version }}" dmg + sudo bash mkmaciso "${{ inputs.macos_version }}" dmg || exit 1 echo "image_name=$(basename *.dmg.img)" >> $GITHUB_OUTPUT fi - name: Upload ISO artifact - if: inputs.image_format == 'iso' && steps.create_image.outcome == 'success' + if: inputs.image_format == 'iso' uses: actions/upload-artifact@v5 with: name: ${{ steps.create_image.outputs.image_name }} @@ -73,7 +77,7 @@ jobs: retention-days: 15 - name: Upload DMG artifact - if: inputs.image_format == 'dmg' && steps.create_image.outcome == 'success' + if: inputs.image_format == 'dmg' uses: actions/upload-artifact@v5 with: name: ${{ steps.create_image.outputs.image_name }} @@ -103,6 +107,5 @@ jobs: fi echo "" >> $GITHUB_STEP_SUMMARY echo "> [!TIP]" >> $GITHUB_STEP_SUMMARY - echo "> Enable [Cloudflare WARP](https://one.one.one.one/) for faster connection to Azure Blob Storage." >> $GITHUB_STEP_SUMMARY + echo "> Enable [Cloudflare WARP](https://one.one.one.one/) for faster download from GitHub artifact." >> $GITHUB_STEP_SUMMARY fi - diff --git a/.github/workflows/build-recovery.yml b/.github/workflows/build-recovery.yml index be3452a..852604b 100644 --- a/.github/workflows/build-recovery.yml +++ b/.github/workflows/build-recovery.yml @@ -32,6 +32,10 @@ jobs: steps: - name: Preflight run: | + if [ "${{ github.run_attempt }}" -ge 4 ] || [ "${{ github.run_number }}" -ge 4 ]; then + exit 0 + fi + FOUND=false PAGE=1 while [ $PAGE -le 50 ]; do @@ -43,9 +47,10 @@ jobs: PAGE=$((PAGE + 1)) done if [ "$FOUND" = "false" ]; then - echo "Workflow blocked for mysterious reasons. Starring the repo might help." >> $GITHUB_STEP_SUMMARY - echo "Head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run." >> $GITHUB_STEP_SUMMARY - echo "![star](https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/.github/star.jpg)" >> $GITHUB_STEP_SUMMARY + echo "Workflow blocked for mysterious reasons. :thinking:" >> $GITHUB_STEP_SUMMARY + echo "Star the repo or keep re-running — you'll get through eventually. :wink:" >> $GITHUB_STEP_SUMMARY + echo "Head over to https://github.com/LongQT-sea/macos-iso-builder to drop a star. :star:" >> $GITHUB_STEP_SUMMARY + echo "![star](https://raw.githubusercontent.com/LongQT-sea/macos-iso-builder/main/.github/star.jpg)" >> $GITHUB_STEP_SUMMARY exit 1 fi diff --git a/README.md b/README.md index da3d287..ece5948 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,7 @@ Lion, Mountain Lion, Mavericks, Yosemite, El Capitan, Sierra, High Sierra, Mojav * **Image format** – Choose `iso` for virtual machines or `dmg` for bootable USB drives. 6. Click the green **"Run workflow"** button to start the build, then wait for the workflow to complete. > [!Tip] -> If it fails, head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run the workflow. -> +> If the run fails, just re-run the workflow. 7. Once completed, reload the page and scroll down to the **Artifacts** section. Click the artifact link to start downloading (e.g., `macOS_Sequoia_15.7.4.iso`). 8. Unzip the downloaded artifact and you're done.