优化
This commit is contained in:
@@ -190,7 +190,7 @@ jobs:
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await client.git.createRef(refInfo);
|
await client.git.createRef(refInfo);
|
||||||
} catch (err: any) {
|
} catch (err) {
|
||||||
const existingTag = refInfo.ref.substring(5); // 'refs/tags/latest' => 'tags/latest'
|
const existingTag = refInfo.ref.substring(5); // 'refs/tags/latest' => 'tags/latest'
|
||||||
core.info(
|
core.info(
|
||||||
`Could not create new tag "${refInfo.ref}" (${err.message}) therefore updating existing tag "${existingTag}"`,
|
`Could not create new tag "${refInfo.ref}" (${err.message}) therefore updating existing tag "${existingTag}"`,
|
||||||
|
|||||||
Reference in New Issue
Block a user