Skip to content

Commit c6cd8cf

Browse files
authored
Merge pull request #55 from ttsuuubasa/github-action-release
chore(ci): fix github actions release.yml to resolve SyntaxError
2 parents 5356bd8 + 854feda commit c6cd8cf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)