Skip to content

Commit 6d788e7

Browse files
committed
Update ci.yml
1 parent eeb7759 commit 6d788e7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
prepare:
1414
runs-on: ubuntu-latest
15-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
15+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true)
1616

1717
outputs:
1818
submodule-matrix: ${{ steps.discover-submodules.outputs.submodule-matrix }}
@@ -80,15 +80,7 @@ jobs:
8080
with:
8181
node-version: '20'
8282

83-
- name: Run Database code
84-
if: github.event_name != 'pull_request' && github.event.repository.fork == false
85-
env:
86-
UPLOAD_TO_DATABASE: true
87-
run:
88-
echo "Running database code"
89-
9083
- name: Install Database SDK
91-
if: env.UPLOAD_TO_DATABASE
9284
run: |
9385
sudo apt-get update
9486
sudo apt-get install apt-transport-https ca-certificates gnupg curl
@@ -97,7 +89,6 @@ jobs:
9789
sudo apt-get update && sudo apt-get install google-cloud-cli
9890
9991
- name: Authenticate to Database
100-
if: env.UPLOAD_TO_DATABASE
10192
env:
10293
GCP_SERVICE_ACCOUNT_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
10394
run: |

0 commit comments

Comments
 (0)