Skip to content

Commit 69d0299

Browse files
uncleDecarteriknordmark
authored andcommitted
GitHub Actions fix template literals in assets.yml
in order to use variables in strings in JavaScript one need to use template literals https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals Signed-off-by: Pavel Abramov <[email protected]>
1 parent a267c95 commit 69d0299

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/assets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ jobs:
9494
const raw = (await github.repos.createRelease({
9595
owner: context.repo.owner,
9696
repo: context.repo.repo,
97-
tag_name: TAG,
98-
name: 'Release ' + TAG,
97+
tag_name: `${TAG}`,
98+
name: `Release ${TAG}`,
9999
prerelease: true,
100100
})).data
101101
console.log(raw)
@@ -105,7 +105,7 @@ jobs:
105105
const release = (await github.repos.getReleaseByTag({
106106
owner: context.repo.owner,
107107
repo: context.repo.repo,
108-
tag: TAG,
108+
tag: `${TAG}`,
109109
})).data
110110
111111
// get assets for that ID

0 commit comments

Comments
 (0)