Skip to content

Commit

Permalink
GitHub Actions: use env variable TAG instead of rewriting in assets.yml
Browse files Browse the repository at this point in the history
Following #3529 this commit fixes publishing step. TAG variable should not
be quoted. We remove tag environment variable and use TAG since it's already
present.

Signed-off-by: Pavel Abramov <[email protected]>
  • Loading branch information
uncleDecart authored and eriknordmark committed Oct 26, 2023
1 parent e7be046 commit 2164aea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,15 @@ jobs:
result-encoding: string
script: |
console.log(context)
tag = '${TAG}'
// first create a release -- it is OK if that fails,
// since it means the release is already there
try {
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 +114,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 2164aea

Please sign in to comment.