Disable prompts (#688)

This commit is contained in:
Seth Vargo 2024-05-01 11:40:25 -07:00 committed by GitHub
parent f431b4bff5
commit 744a572c20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,8 @@ export async function run(): Promise<void> {
core.exportVariable('CLOUDSDK_METRICS_ENVIRONMENT', 'github-actions-setup-gcloud');
core.exportVariable('CLOUDSDK_METRICS_ENVIRONMENT_VERSION', appVersion);
process.env.CLOUDSDK_CORE_DISABLE_PROMPTS = '1';
// Warn if pinned to HEAD
if (isPinnedToHead()) {
core.warning(pinnedToHeadWarning('v2'));