create tags on resolved commit

This commit is contained in:
Mateusz Burzyński
2026-08-04 11:28:02 +02:00
parent a60abaee45
commit 3fedbeed23
2 changed files with 57 additions and 5 deletions
+2 -2
View File
@@ -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({