Skip to content

Commit

Permalink
Merge pull request #56 from blinklabs-io/ci/publish-fix
Browse files Browse the repository at this point in the history
ci: get version correctly for release
  • Loading branch information
agaffney authored Jan 8, 2024
2 parents f553b98 + e514c23 commit e2b0b94
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ jobs:
outputs:
RELEASE_ID: ${{ steps.create-release.outputs.result }}
steps:
- run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
- name: Checkout code
uses: actions/checkout@v3

- name: Get current version
id: cversion
run: echo "::set-output name=version::$(grep version galaxy.yml | sed -e 's:^.* ::')"

- uses: actions/github-script@v6
id: create-release
with:
Expand All @@ -30,11 +36,11 @@ jobs:
const response = await github.rest.repos.createRelease({
draft: true,
generate_release_notes: true,
name: process.env.RELEASE_TAG,
name: '${{ steps.cversion.outputs.version }}',
owner: context.repo.owner,
prerelease: false,
repo: context.repo.repo,
tag_name: process.env.RELEASE_TAG,
tag_name: '${{ steps.cversion.outputs.version }}',
});
return response.data.id;
Expand Down

0 comments on commit e2b0b94

Please sign in to comment.