Skip to content

Commit a74fe18

Browse files
authored
release.yml: use correct target_commitish arg (#1381)
Use the correct name for setting the target of a tag in the release workflow, for creating a draft release. It should be `target_commitish` not `tag_commitish`. https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#create-a-release Thanks to @dscho for realising my error.
2 parents 0e54a3e + 0704b42 commit a74fe18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ jobs:
749749
...releaseMetadata,
750750
draft: true,
751751
tag_name: tagName,
752-
tag_commitish: context.sha,
752+
target_commitish: context.sha,
753753
name: `GCM ${version}`
754754
});
755755
releaseMetadata.release_id = createdRelease.data.id;

0 commit comments

Comments
 (0)