From 834f5a572767f01fe3788f62b9acb9a120827239 Mon Sep 17 00:00:00 2001 From: Shahar Bar <33932594+shaharbar1@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:33:24 +0300 Subject: [PATCH] Fixed Release on Continuous Delivery (#51) ### Changes * Change treatment of package version on continuous_delivery.yml. --- .github/workflows/continuous_delivery.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous_delivery.yml b/.github/workflows/continuous_delivery.yml index 2808109..60542a1 100644 --- a/.github/workflows/continuous_delivery.yml +++ b/.github/workflows/continuous_delivery.yml @@ -65,6 +65,7 @@ jobs: uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} + package-version: ${{ env.PACKAGE_VERSION }} script: | const { data: releases } = await github.repos.listReleases({ owner: context.repo.owner, @@ -78,12 +79,10 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, release_id: draftRelease.id, - tag_name: process.env.PACKAGE_VERSION, - name: process.env.PACKAGE_VERSION, + tag_name: version, + name: version, draft: false }); } else { core.setFailed(`Draft release named "Draft" not found.`); }; - env: - PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}