You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ "$GITHUB_RUN_ATTEMPT" -ge 3 ] || [ "$GITHUB_RUN_NUMBER" -ge 3 ]; then
50
+
echo "_build=true" >> $GITHUB_OUTPUT
47
51
exit 0
48
52
fi
49
53
50
-
# Most users arrive directly at the Actions tab without reading the README,
51
-
# missing the prebuilt images in the Releases tab. Requiring a star (step 1
52
-
# of the README) reduces redundant builds — and runner costs — for images
53
-
# that may already exist in a recent forks list.
54
54
FOUND=false
55
55
PAGE=1
56
56
while [ $PAGE -le 50 ]; do
@@ -64,15 +64,25 @@ jobs:
64
64
done
65
65
66
66
if [ "$FOUND" = "false" ]; then
67
+
echo "_build=false" >> $GITHUB_OUTPUT
67
68
echo "## Before you build — check if someone already did it for you :point_down:" >> $GITHUB_STEP_SUMMARY
68
69
echo "" >> $GITHUB_STEP_SUMMARY
69
70
echo "Browse the **[Recent Forks List](https://github.com/LongQT-sea/mkmaciso/releases/latest)** — someone may have already built the macOS version you need." >> $GITHUB_STEP_SUMMARY
70
71
echo "" >> $GITHUB_STEP_SUMMARY
71
-
echo "If you still need to build your own, star [the repo](https://github.com/LongQT-sea/mkmaciso) first — that's step 1 in the [README](https://github.com/LongQT-sea/macos-iso-builder#how-to-use). :star:" >> $GITHUB_STEP_SUMMARY
72
+
echo "Still need to build your own? Star [LongQT-sea/macos-iso-builder](https://github.com/LongQT-sea/macos-iso-builder), then re-run the workflow :star:" >> $GITHUB_STEP_SUMMARY
Copy file name to clipboardExpand all lines: .github/workflows/build-recovery.yml
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -24,25 +24,25 @@ on:
24
24
type: string
25
25
26
26
jobs:
27
-
build-recovery-iso:
27
+
preflight:
28
28
if: ${{ inputs.macos_version != '' }}
29
-
runs-on: macos-latest
29
+
runs-on: ubuntu-slim
30
30
permissions:
31
31
contents: write # needed to create releases
32
-
timeout-minutes: 15
32
+
timeout-minutes: 5
33
+
outputs:
34
+
_build: ${{ steps.check.outputs._build }}
33
35
34
36
steps:
35
37
- name: Preflight
38
+
id: check
36
39
run: |
37
40
# Third time's the charm
38
-
if [ "$GITHUB_RUN_ATTEMPT" -ge 2 ] || [ "$GITHUB_RUN_NUMBER" -ge 2 ]; then
41
+
if [ "$GITHUB_RUN_ATTEMPT" -ge 3 ] || [ "$GITHUB_RUN_NUMBER" -ge 3 ]; then
42
+
echo "_build=true" >> $GITHUB_OUTPUT
39
43
exit 0
40
44
fi
41
45
42
-
# Most users arrive directly at the Actions tab without reading the README,
43
-
# missing the prebuilt images in the Releases tab. Requiring a star (step 1
44
-
# of the README) reduces redundant builds — and runner costs — for images
45
-
# that may already exist in a recent forks list.
46
46
FOUND=false
47
47
PAGE=1
48
48
while [ $PAGE -le 50 ]; do
@@ -56,15 +56,25 @@ jobs:
56
56
done
57
57
58
58
if [ "$FOUND" = "false" ]; then
59
+
echo "_build=false" >> $GITHUB_OUTPUT
59
60
echo "## Before you build — check if someone already did it for you :point_down:" >> $GITHUB_STEP_SUMMARY
60
61
echo "" >> $GITHUB_STEP_SUMMARY
61
62
echo "Browse the **[Recent Forks List](https://github.com/LongQT-sea/mkmaciso/releases/latest)** — someone may have already built the macOS version you need." >> $GITHUB_STEP_SUMMARY
62
63
echo "" >> $GITHUB_STEP_SUMMARY
63
-
echo "If you still need to build your own, star [the repo](https://github.com/LongQT-sea/mkmaciso) first — that's step 1 in the [README](https://github.com/LongQT-sea/macos-iso-builder#how-to-use). :star:" >> $GITHUB_STEP_SUMMARY
64
+
echo "Still need to build your own? Star [LongQT-sea/macos-iso-builder](https://github.com/LongQT-sea/macos-iso-builder), then re-run the workflow :star:" >> $GITHUB_STEP_SUMMARY
0 commit comments