File tree 3 files changed +41
-17
lines changed
3 files changed +41
-17
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,16 @@ name: cocoapods-publish
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
- version :
7
- description : ' Tag name for release (e.g. "1.0.0")'
8
- required : true
9
- type : string
6
+ name :
7
+ type : choice
8
+ description : CocoaPod to Publish
9
+ options :
10
+ - OpenPass
11
+ - OpenPassObjC
12
+ version :
13
+ description : ' Tag name for release (e.g. "1.0.0")'
14
+ required : true
15
+ type : string
10
16
11
17
# https://github.com/actions/runner-images/?tab=readme-ov-file#available-images
12
18
jobs :
@@ -19,22 +25,19 @@ jobs:
19
25
- name : Set up
20
26
run : mkdir tmp
21
27
22
- - name : Update podspecs
28
+ - name : Update podspec
23
29
run : |
24
- jq --arg VERSION "${{ inputs.version }}" '. | .version |= $VERSION | .source.tag |= $VERSION' OpenPass.podspec.json > tmp/OpenPass.podspec.json
25
- jq --arg VERSION "${{ inputs.version }}" '. | .version |= $VERSION | .source.tag |= $VERSION' OpenPassObjC.podspec.json > tmp/OpenPassObjC.podspec.json
26
-
27
- - name : Lint podspecs
30
+ jq --arg VERSION "${{ inputs.version }}" '. | .version |= $VERSION | .source.tag |= $VERSION' ${{ github.event.inputs.name }}.podspec.json > tmp/${{ github.event.inputs.name }}.podspec.json
31
+
32
+ - name : Lint podspec
28
33
run : |
29
- pod spec lint tmp/OpenPass.podspec.json
30
- pod spec lint tmp/OpenPassObjC.podspec.json
34
+ pod spec lint tmp/${{ github.event.inputs.name }}.podspec.json
31
35
32
- - name : Push podspecs to Cocoapods trunk
36
+ - name : Push podspec to Cocoapods trunk
33
37
env :
34
38
COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
35
39
run : |
36
- pod trunk push tmp/OpenPass.podspec.json
37
- pod trunk push tmp/OpenPassObjC.podspec.json
40
+ pod trunk push tmp/${{ github.event.inputs.name }}.podspec.json
38
41
39
42
- name : Clean up
40
43
run : rm -r tmp
Original file line number Diff line number Diff line change
1
+ name : Lint Pull Requests for OpenPassObjC
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - OpenPassObjC.podspec.json
7
+
8
+ # this allows us to manually run this job
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+
13
+ lint-podspec :
14
+ name : Lint OpenPassObjC Podspec
15
+ runs-on : macos-14
16
+
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Select Xcode 16.1
21
+ run : sudo xcode-select -s /Applications/Xcode_16.1.app
22
+
23
+ - name : Lint OpenPass podspec
24
+ run : pod lib lint OpenPassObjC.podspec.json --verbose
Original file line number Diff line number Diff line change 41
41
- name : Lint OpenPass podspec
42
42
run : pod lib lint OpenPass.podspec.json --verbose
43
43
44
- - name : Lint OpenPassObjC podspec
45
- run : pod lib lint OpenPassObjC.podspec.json --verbose
46
-
47
44
device-tests :
48
45
uses : ./.github/workflows/device-tests.yml
49
46
with :
You can’t perform that action at this time.
0 commit comments