Skip to content

Commit f5304a7

Browse files
uncleDecarteriknordmark
authored andcommitted
GitHub Actions: use env variable TAG instead of rewriting in assets.yml
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]>
1 parent 53ebcdb commit f5304a7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/assets.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,15 @@ jobs:
9696
result-encoding: string
9797
script: |
9898
console.log(context)
99-
tag = '${TAG}'
10099
101100
// first create a release -- it is OK if that fails,
102101
// since it means the release is already there
103102
try {
104103
const raw = (await github.repos.createRelease({
105104
owner: context.repo.owner,
106105
repo: context.repo.repo,
107-
tag_name: tag,
108-
name: 'Release ' + tag,
106+
tag_name: TAG,
107+
name: 'Release ' + TAG,
109108
prerelease: true,
110109
})).data
111110
console.log(raw)
@@ -115,7 +114,7 @@ jobs:
115114
const release = (await github.repos.getReleaseByTag({
116115
owner: context.repo.owner,
117116
repo: context.repo.repo,
118-
tag: tag,
117+
tag: TAG,
119118
})).data
120119
121120
// get assets for that ID

0 commit comments

Comments
 (0)