Skip to content

Commit

Permalink
Fixed Release on Continuous Delivery (#51)
Browse files Browse the repository at this point in the history
### Changes
 * Change treatment of package version on continuous_delivery.yml.
  • Loading branch information
shaharbar1 authored Sep 4, 2024
1 parent 524f896 commit 834f5a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/continuous_delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 }}

0 comments on commit 834f5a5

Please sign in to comment.