From 2164aea381a36ad567a56919ea216e908d49438a Mon Sep 17 00:00:00 2001 From: Pavel Abramov Date: Thu, 26 Oct 2023 13:58:35 +0200 Subject: [PATCH] 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 --- .github/workflows/assets.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index 143ad97a0c..446bb6d3d1 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -96,7 +96,6 @@ 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 @@ -104,8 +103,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) @@ -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