Skip to content

Commit

Permalink
test: use --if-present rather than failing on build (GoogleCloudPlatf…
Browse files Browse the repository at this point in the history
…orm#3372)

Co-authored-by: Patti Shin <pattishin@users.noreply.github.com>
  • Loading branch information
kweinmeister and pattishin committed Aug 2, 2023
1 parent 1f0704f commit 42355b6
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ai-platform-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/automl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dialogflow-cx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/functions-slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/iam-deny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/security-center-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/storagetransfer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/utils/ci-secrets.yaml.njk
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/vision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ jobs:
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build
continue-on-error: true
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
Expand Down

0 comments on commit 42355b6

Please sign in to comment.