Skip to content

Commit

Permalink
Disable prompts (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo authored May 1, 2024
1 parent f431b4b commit 744a572
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 744a572

Please sign in to comment.