Skip to content

Commit

Permalink
Set release tag target in draft release workflow (git-ecosystem#1379)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mjcheetham authored Aug 15, 2023
2 parents adfa71a + 8688f5d commit 4561a23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ jobs:
...releaseMetadata,
draft: true,
tag_name: tagName,
tag_commitish: context.sha,
name: `GCM ${version}`
});
releaseMetadata.release_id = createdRelease.data.id;
Expand Down

0 comments on commit 4561a23

Please sign in to comment.