Skip to content

Commit 9cc7a22

Browse files
committed
don't run CI twice
1 parent c020b66 commit 9cc7a22

6 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/arduino-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Arduino Lint
33
on: [push, pull_request]
44
jobs:
55
lint:
6+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
67
runs-on: ubuntu-latest
78
steps:
89
- uses: actions/checkout@v4

.github/workflows/build_arduino-ide.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
build-for-esp8266:
8+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
89
runs-on: ubuntu-latest
910

1011
strategy:
@@ -34,6 +35,7 @@ jobs:
3435
source-url: https://github.com/ESP32Async/ESPAsyncTCP.git
3536
3637
build-for-esp32:
38+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3739
runs-on: ubuntu-latest
3840

3941
strategy:

.github/workflows/build_platformio.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
build-for-esp8266:
7+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
78
runs-on: ubuntu-latest
89
container: ghcr.io/bertmelis/pio-test-container
910
strategy:
@@ -31,6 +32,7 @@ jobs:
3132
PLATFORMIO_CI_SRC: ${{ matrix.example }}
3233

3334
build-for-esp32:
35+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3436
runs-on: ubuntu-latest
3537
container: ghcr.io/bertmelis/pio-test-container
3638
strategy:
@@ -57,6 +59,7 @@ jobs:
5759
PLATFORMIO_CI_SRC: ${{ matrix.example }}
5860

5961
build-for-linux:
62+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
6063
runs-on: ubuntu-latest
6164
container: ghcr.io/bertmelis/pio-test-container
6265
strategy:

.github/workflows/cppcheck.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Cppcheck
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
cppcheck:
7+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
78
runs-on: ubuntu-latest
89
container: ghcr.io/bertmelis/pio-test-container
910
steps:

.github/workflows/cpplint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ name: cpplint
33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
6+
cpplint:
7+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
88
runs-on: ubuntu-latest
9-
109
steps:
1110
- uses: actions/checkout@v4
1211
- name: Set up Python

.github/workflows/test_platformio.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Test with Platformio
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
test:
7+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
78
runs-on: ubuntu-latest
89
container: ghcr.io/bertmelis/pio-test-container
910

0 commit comments

Comments
 (0)