Skip to content

Commit 4561a23

Browse files
authored
Set release tag target in draft release workflow (#1379)
When creating the initial draft release, also set the target commit to the currently built commit (the merge in to `release` typically) so that we don't accidentally create a release tag against the wrong target.
2 parents adfa71a + 8688f5d commit 4561a23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)