File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: _prepare
3
3
on :
4
4
workflow_call :
5
5
inputs :
6
+ os :
7
+ description : GitHub Actions runner OS
8
+ type : string
9
+ required : true
6
10
builder_ref :
7
11
description : Git ref to checkout of build-emacs-for-macos
8
12
required : false
15
19
16
20
jobs :
17
21
emacs-builder :
18
- # Use oldest version of macOS to ensure emacs-bulder binary is compatible
19
- # with later versions of macOS.
20
- runs-on : macos-11
22
+ runs-on : ${{ inputs.os }}
21
23
steps :
22
24
- name : Checkout build-emacs-for-macos repo
23
25
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ name: _release
4
4
on :
5
5
workflow_call :
6
6
inputs :
7
+ os :
8
+ description : GitHub Actions runner OS
9
+ type : string
10
+ required : true
7
11
plan_artifact :
8
12
description : Name of artifact containing a emacs-builder plan yaml file
9
13
type : string
12
16
description : Name of artifact containing a *.dmg files to release
13
17
type : string
14
18
required : true
19
+ test_build_name :
20
+ description : " Test build name"
21
+ type : string
22
+ required : false
15
23
secrets :
16
24
TAP_REPO_TOKEN :
17
25
description : Personal Access Token for Homebrew Tap repo
18
26
required : true
19
27
20
28
jobs :
21
29
github :
22
- runs-on : macos-11
30
+ runs-on : ${{ inputs.os }}
23
31
steps :
24
32
- name : Download pre-built emacs-builder artifact
25
33
uses : actions/download-artifact@v3
48
56
env :
49
57
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
58
- name : Trigger update casks workflow in homebrew tap
51
- if : ${{ steps.dmg.outputs.result != 'fail' && inputs.testBuildName == '' }}
59
+ if : ${{ steps.dmg.outputs.result != 'fail' && inputs.test_build_name == '' }}
52
60
run : >-
53
61
gh workflow run --repo jimeh/homebrew-emacs-builds update-casks.yml
54
62
env :
Original file line number Diff line number Diff line change 36
36
name : Prepare
37
37
uses : ./.github/workflows/_prepare.yml
38
38
with :
39
+ os : ${{ github.event.inputs.os }}
39
40
builder_ref : ${{ github.event.inputs.builder_ref }}
40
41
secrets :
41
42
TAP_REPO_TOKEN : ${{ secrets.TAP_REPO_TOKEN }}
66
67
needs : [build]
67
68
uses : ./.github/workflows/_release.yml
68
69
with :
70
+ os : ${{ github.event.inputs.os }}
69
71
plan_artifact : build-plan
70
72
dmg_artifact : dmg
73
+ test_build_name : ${{ github.event.inputs.test_build_name }}
71
74
secrets :
72
75
TAP_REPO_TOKEN : ${{ secrets.TAP_REPO_TOKEN }}
You can’t perform that action at this time.
0 commit comments