File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -25,20 +25,21 @@ jobs:
2525 with :
2626 github-token : ${{ secrets.GITHUB_TOKEN }}
2727 script : |
28+ const tag = context.ref.replace("refs/tags/", '');
2829 await github.rest.pulls.create({
2930 owner: context.repo.owner,
3031 repo: context.repo.repo,
31- title: `chore(release): release ${context.ref_name } (automated)`,
32- head: `release-${context.ref_name }`,
32+ title: `chore(release): release ${tag } (automated)`,
33+ head: `release-${tag }`,
3334 base: 'main',
34- body: `Release Changes for \`${context.ref_name}\`
35+ draft: false,
36+ body: `Release Changes for \`${tag}\`
3537
3638 ### Changes included:
37- - Created release branch \`release-${context.ref_name }\`
39+ - Created release branch \`release-${tag }\`
3840 - Automatically generated documentation
39- - Bumped Helm chart version to \`${context.ref_name }\`
41+ - Bumped Helm chart version to \`${tag }\`
4042
4143 This PR was generated automatically by karpenter-provider-cluster-api/.github/workflows/release.yml
4244 `
43- draft: false
4445 });
You can’t perform that action at this time.
0 commit comments