Skip to content

Commit

Permalink
GitHub Actions fix template literals in assets.yml
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
uncleDecart authored and eriknordmark committed Oct 27, 2023
1 parent fa4f033 commit 54cee95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ jobs:
const raw = (await github.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: '${TAG}',
name: 'Release ' + '${TAG}',
tag_name: `${TAG}`,
name: `Release ${TAG}`,
prerelease: true,
})).data
console.log(raw)
Expand All @@ -115,7 +115,7 @@ jobs:
const release = (await github.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: '${TAG}',
tag: `${TAG}`,
})).data
// get assets for that ID
Expand Down

0 comments on commit 54cee95

Please sign in to comment.