Skip to content

Commit

Permalink
fix(ci): tag is wrong when release is published
Browse files Browse the repository at this point in the history
  • Loading branch information
hcavarsan committed Jan 15, 2025
1 parent 5518204 commit de13fba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ needs.create-release-draft.outputs.release_id }},
body: `${{ steps.git-cliff.outputs.content }}`
body: `${{ steps.git-cliff.outputs.content }}`,
tag_name: process.env.GITHUB_REF_NAME,
name: `KFtray - ${process.env.GITHUB_REF_NAME}`
});
} catch (error) {
console.error('Failed to update release notes:', error);
Expand All @@ -444,7 +446,9 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ needs.create-release-draft.outputs.release_id }},
body: `${{ steps.git-cliff.outputs.content }}`
body: `${{ steps.git-cliff.outputs.content }}`,
tag_name: process.env.GITHUB_REF_NAME,
name: `KFtray - ${process.env.GITHUB_REF_NAME}`
});
} else {
throw error;
Expand Down

0 comments on commit de13fba

Please sign in to comment.