File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1+ // Check if GCP_CREDENTIALS is set and valid before requiring the module
2+ if ( ! process . env . GCP_CREDENTIALS || process . env . GCP_CREDENTIALS . trim ( ) === '' ) {
3+ console . log ( 'GCP_CREDENTIALS not set. Skipping metrics upload.' ) ;
4+ process . exit ( 0 ) ;
5+ }
6+
17const Monitoring = require ( '@google-cloud/monitoring' ) ;
28
39const gcpCredentials = JSON . parse ( process . env . GCP_CREDENTIALS ) ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ shared:
4141
4242merge_queue :
4343 max_parallel_checks : 1
44- queued_label : null
44+ queued_label :
4545
4646priority_rules :
4747 - name : high_priority
@@ -56,8 +56,6 @@ queue_rules:
5656 merge_conditions : *merge-conditions
5757 merge_method : merge
5858 update_method : rebase
59- autosquash : true
60-
6159 - name : merge
6260 commit_message_template : *commit-message-template
6361 queue_conditions : *queue-conditions
@@ -96,5 +94,4 @@ pull_request_rules:
9694 - check-failure=no-fixup-commits
9795 - -draft
9896 actions :
99- rebase :
100- autosquash : true
97+ rebase : {}
You can’t perform that action at this time.
0 commit comments