Skip to content

Commit

Permalink
Fix release names based on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jan 7, 2021
1 parent 83afd0a commit de228ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
const release = await github.repos.createRelease({
owner, repo,
// if GITHUB_REF just appears to be a branch, use tag-{commit} as the tag
tag_name: process.env.GITHUB_REF.includes("refs/heads/") ? "tag-" + sha : process.env.GITHUB_REF,
tag_name: process.env.GITHUB_REF.includes("refs/heads/") ? "tag-" + sha : process.env.GITHUB_REF.split("/").pop(),
target_commitish: sha
});
Expand Down

0 comments on commit de228ea

Please sign in to comment.