forked from Quick/Quick
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 939 Bytes
/
Copy pathcocoapods.yml
File metadata and controls
36 lines (33 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CocoaPods
on:
push:
branches:
- main
tags:
- "*"
pull_request:
jobs:
filter:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v3.4.0
with:
paths: '[".github/workflows/cocoapods.yml", "Quick.podspec", "Sources/**", "Gemfile*", "Rakefile"]'
do_not_skip: '["push", "workflow_dispatch", "schedule"]'
cocoapods:
name: CocoaPods Lint
needs: filter
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
if: ${{ needs.filter.outputs.should_skip != 'true' }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
if: ${{ needs.filter.outputs.should_skip != 'true' }}
- run: rake podspec:lint
if: ${{ needs.filter.outputs.should_skip != 'true' }}