Skip to content

Commit dad7020

Browse files
committed
delete if exists
1 parent 7d1f361 commit dad7020

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/ci/codegen/spreadGeneration.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ async function spreadGeneration(): Promise<void> {
151151
`Processing release commit, creating new release tag ('${version}') for '${lang}' repository.`
152152
);
153153

154-
await run(`git tag -d ${version}`, { cwd: tempGitDir });
154+
// we always want to delete the tag in case it exists
155+
await run(`git tag -d ${version} || true`, { cwd: tempGitDir });
155156
await run(`git tag ${version} HEAD`, { cwd: tempGitDir });
156157
await run('git push --tags', { cwd: tempGitDir });
157158
}

0 commit comments

Comments
 (0)