Skip to content

Commit 42355b6

Browse files
test: use --if-present rather than failing on build (#3372)
Co-authored-by: Patti Shin <[email protected]>
1 parent 1f0704f commit 42355b6

10 files changed

+10
-20
lines changed

.github/workflows/ai-platform-snippets.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ jobs:
7777
working-directory: .
7878
- name: install directory dependencies
7979
run: npm install
80-
- run: npm run build
81-
continue-on-error: true
80+
- run: npm run build --if-present
8281
- name: set env vars for scheduled run
8382
if: github.event.action == 'schedule'
8483
run: |

.github/workflows/automl.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ jobs:
7676
working-directory: .
7777
- name: install directory dependencies
7878
run: npm install
79-
- run: npm run build
80-
continue-on-error: true
79+
- run: npm run build --if-present
8180
- name: set env vars for scheduled run
8281
if: github.event.action == 'schedule'
8382
run: |

.github/workflows/dialogflow-cx.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ jobs:
8080
working-directory: .
8181
- name: install directory dependencies
8282
run: npm install
83-
- run: npm run build
84-
continue-on-error: true
83+
- run: npm run build --if-present
8584
- name: set env vars for scheduled run
8685
if: github.event.action == 'schedule'
8786
run: |

.github/workflows/functions-slack.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ jobs:
7777
working-directory: .
7878
- name: install directory dependencies
7979
run: npm install
80-
- run: npm run build
81-
continue-on-error: true
80+
- run: npm run build --if-present
8281
- name: set env vars for scheduled run
8382
if: github.event.action == 'schedule'
8483
run: |

.github/workflows/iam-deny.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ jobs:
7171
working-directory: .
7272
- name: install directory dependencies
7373
run: npm install
74-
- run: npm run build
75-
continue-on-error: true
74+
- run: npm run build --if-present
7675
- name: set env vars for scheduled run
7776
if: github.event.action == 'schedule'
7877
run: |

.github/workflows/security-center-snippets.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ jobs:
7171
working-directory: .
7272
- name: install directory dependencies
7373
run: npm install
74-
- run: npm run build
75-
continue-on-error: true
74+
- run: npm run build --if-present
7675
- name: set env vars for scheduled run
7776
if: github.event.action == 'schedule'
7877
run: |

.github/workflows/storagetransfer.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ jobs:
7777
working-directory: .
7878
- name: install directory dependencies
7979
run: npm install
80-
- run: npm run build
81-
continue-on-error: true
80+
- run: npm run build --if-present
8281
- name: set env vars for scheduled run
8382
if: github.event.action == 'schedule'
8483
run: |

.github/workflows/test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ jobs:
6262
working-directory: .
6363
- name: install directory dependencies
6464
run: npm install
65-
- run: npm run build
66-
continue-on-error: true
65+
- run: npm run build --if-present
6766
- name: set env vars for scheduled run
6867
if: github.event.action == 'schedule'
6968
run: |

.github/workflows/utils/ci-secrets.yaml.njk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ jobs:
7878
working-directory: .
7979
- name: install directory dependencies
8080
run: npm install
81-
- run: npm run build
82-
continue-on-error: true
81+
- run: npm run build --if-present
8382
- name: set env vars for scheduled run
8483
if: github.event.action == 'schedule'
8584
run: |

.github/workflows/vision.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ jobs:
7676
working-directory: .
7777
- name: install directory dependencies
7878
run: npm install
79-
- run: npm run build
80-
continue-on-error: true
79+
- run: npm run build --if-present
8180
- name: set env vars for scheduled run
8281
if: github.event.action == 'schedule'
8382
run: |

0 commit comments

Comments
 (0)