Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/main/index.js

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,6 @@ export async function run(): Promise<void> {
throw new Error(`Unkown metadata type "${kind}", expected "Job" or "Service"`);
}
} else if (job) {
logWarning(
`Support for Cloud Run jobs in this GitHub Action is in beta and is ` +
`not covered by the semver backwards compatibility guarantee.`,
);

deployCmd = ['run', 'jobs', 'deploy', job];

if (image) {
Expand All @@ -189,17 +184,6 @@ export async function run(): Promise<void> {
deployCmd.push('--wait');
}

// There is no --update-secrets flag on jobs, but there will be in the
// future. At that point, we can remove this.
const idx = deployCmd.indexOf('--update-secrets');
if (idx >= 0) {
logWarning(
`Cloud Run does not allow updating secrets on jobs, ignoring ` +
`"secrets_update_strategy" value of "merge"`,
);
deployCmd[idx] = '--set-secrets';
}

// Compile the labels
const defLabels = skipDefaultLabels ? {} : defaultLabels();
const compiledLabels = Object.assign({}, defLabels, labels);
Expand Down