Skip to content

Commit

Permalink
Share workflow version varible
Browse files Browse the repository at this point in the history
  • Loading branch information
proton committed Nov 27, 2023
1 parent 2b935af commit b02e17c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
uses: actions/checkout@v4

- name: Extract version from package.json
id: extract_version
run: |
export VERSION=$(grep 'version"' package.json | cut -d '"' -f 4)
echo "Release version is $VERSION"
echo "::set-env name=VERSION::$VERSION"
VERSION=$(grep 'version"' package.json | cut -d '"' -f 4)
echo "::set-output name=version::$VERSION"
- name: Create tag
uses: actions/github-script@v7
Expand All @@ -27,7 +27,7 @@ jobs:
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: '${{ env.VERSION }}',
ref: '${{ steps.extract_version.outputs.version }}',
sha: context.sha
})
Expand All @@ -44,7 +44,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
out/Kino.pub_${{ env.VERSION }}.zip
out/Kino.pub_${{ steps.extract_version.outputs.version }}.zip
- name: Publish Release URL
run: |
Expand Down

0 comments on commit b02e17c

Please sign in to comment.