Skip to content

Commit b27877f

Browse files
committed
fix(ci): do not run both push and pull_request pipelines
1 parent a742f4b commit b27877f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Ruby CI/CD
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
412

513
permissions: {}
614
jobs:
@@ -42,7 +50,7 @@ jobs:
4250
run: bundle exec rake
4351

4452
Integration_tests:
45-
if: github.event_name == 'push'
53+
if: github.repository == 'tinify/tinify-ruby'
4654
runs-on: ${{ matrix.os }}
4755
timeout-minutes: 10
4856
needs: Unit_tests

0 commit comments

Comments
 (0)