mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
create tags on resolved commit
This commit is contained in:
+2
-2
@@ -225,14 +225,14 @@ export class GitHub {
|
||||
);
|
||||
}
|
||||
|
||||
async pushTag(tag: string) {
|
||||
async pushTag(tag: string, commit = context.sha) {
|
||||
if (!this.pushWithGitCli) {
|
||||
try {
|
||||
const { data: tagObject } = await this.octokit.rest.git.createTag({
|
||||
...context.repo,
|
||||
tag,
|
||||
message: tag,
|
||||
object: context.sha,
|
||||
object: commit,
|
||||
type: "commit",
|
||||
});
|
||||
await this.octokit.rest.git.createRef({
|
||||
|
||||
Reference in New Issue
Block a user