Skip to content

Commit

Permalink
Deprecate v0 series
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Dec 8, 2023
1 parent ee9693f commit 90d1f1e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
version_strategy: '${{ github.event.inputs.version_strategy }}'
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
secrets:
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- 'main'
- 'release/**/*'

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion dist/main/index.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/setup-gcloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ export const GCLOUD_METRICS_ENV_VAR = 'CLOUDSDK_METRICS_ENVIRONMENT';
export const GCLOUD_METRICS_LABEL = 'github-actions-setup-gcloud';

export async function run(): Promise<void> {
// v0 is deprecated and is no longer supported per our "two major versions"
// policy.
core.error(
`The v0 series of google-github-actions/setup-gcloud is no longer ` +
`maintained. It will not receive updates, improvements, or security ` +
`patches. Please upgrade to the latest supported versions: ` +
`\n` +
`\n` +
` https://github.com/google-github-actions/setup-gcloud`,
);

// Warn if pinned to HEAD
if (isPinnedToHead()) {
core.warning(pinnedToHeadWarning('v0'));
Expand Down

0 comments on commit 90d1f1e

Please sign in to comment.